Search is not available for this dataset
text
stringlengths
75
104k
def _validate_rfilter(self, rfilter, letter="d"): """Validate that all columns in filter are in header.""" if letter == "d": pexdoc.exh.addai( "dfilter", ( (not self._has_header) and any([not isinstance(item, int) for it...
def data(self, filtered=False, no_empty=False): r""" Return (filtered) file data. The returned object is a list, each item is a sub-list corresponding to a row of data; each item in the sub-lists contains data corresponding to a particular column :param filtered: Fi...
def dsort(self, order): r""" Sort rows. :param order: Sort order :type order: :ref:`CsvColFilter` .. [[[cog cog.out(exobj.get_sphinx_autodoc()) ]]] .. Auto-generated exceptions documentation for .. pcsv.csv_file.CsvFile.dsort :raises: * Runtim...
def header(self, filtered=False): r""" Return data header. When the raw (input) data is used the data header is a list of the comma-separated values file header if the file is loaded with header (each list item is a column header) or a list of column numbers if the file ...
def replace(self, rdata, filtered=False): r""" Replace data. :param rdata: Replacement data :type rdata: list of lists :param filtered: Filtering type :type filtered: :ref:`CsvFiltered` .. [[[cog cog.out(exobj.get_sphinx_autodoc(width=63)) ]]] .. Auto...
def write(self, fname=None, filtered=False, header=True, append=False): r""" Write (processed) data to a specified comma-separated values (CSV) file. :param fname: Name of the comma-separated values file to be written. If None the file from which the data originated ...
def model_creation(dicCnfg, varRat=None, strPathHrf=None): """ Create or load pRF model time courses. Parameters ---------- dicCnfg : dict Dictionary containing config parameters. varRat : float, default None Ratio of size suppressive surround to size of center pRF strPathHr...
def registIssue(self, CorpNum, cashbill, Memo, UserID=None): """ ν˜„κΈˆμ˜μˆ˜μ¦ μ¦‰μ‹œλ°œν–‰ args CorpNum : νŒλΉŒνšŒμ› μ‚¬μ—…μžλ²ˆν˜Έ cashbill : 등둝할 ν˜„κΈˆμ˜μˆ˜μ¦ object. made with Cashbill(...) UserID : νŒλΉŒνšŒμ› 아이디 return 처리결과. consist of code and message ...
def register(self, CorpNum, cashbill, UserID=None): """ ν˜„κΈˆμ˜μˆ˜μ¦ 등둝 args CorpNum : νŒλΉŒνšŒμ› μ‚¬μ—…μžλ²ˆν˜Έ cashbill : 등둝할 ν˜„κΈˆμ˜μˆ˜μ¦ object. made with Cashbill(...) UserID : νŒλΉŒνšŒμ› 아이디 return 처리결과. consist of code and message r...
def revokeRegistIssue(self, CorpNum, mgtKey, orgConfirmNum, orgTradeDate, smssendYN=False, memo=None, UserID=None, isPartCancel=False, cancelType=None, supplyCost=None, tax=None, serviceFee=None, totalAmount=None): """ μ·¨μ†Œν˜„κΈˆμ˜μˆ˜μ¦ μ¦‰μ‹œλ°œν–‰ args ...
def update(self, CorpNum, MgtKey, cashbill, UserID=None): """ μˆ˜μ • args CorpNum : νŒλΉŒνšŒμ› μ‚¬μ—…μžλ²ˆν˜Έ MgtKey : 원본 ν˜„κΈˆμ˜μˆ˜μ¦ λ¬Έμ„œκ΄€λ¦¬λ²ˆν˜Έ cashbill : μˆ˜μ •ν•  ν˜„κΈˆμ˜μˆ˜μ¦ object. made with Cashbill(...) UserID : νŒλΉŒνšŒμ› 아이디 return 처리결과. ...
def issue(self, CorpNum, MgtKey, Memo=None, UserID=None): """ λ°œν–‰ args CorpNum : νŒλΉŒνšŒμ› μ‚¬μ—…μžλ²ˆν˜Έ MgtKey : 원본 ν˜„κΈˆμ˜μˆ˜μ¦ λ¬Έμ„œκ΄€λ¦¬λ²ˆν˜Έ Memo : λ°œν–‰ λ©”λͺ¨ UserID : νŒλΉŒνšŒμ› 아이디 return 처리결과. consist of code and message ...
def delete(self, CorpNum, MgtKey, UserID=None): """ μ‚­μ œ args CorpNum : νŒλΉŒνšŒμ› μ‚¬μ—…μžλ²ˆν˜Έ MgtKey : 원본 ν˜„κΈˆμ˜μˆ˜μ¦ λ¬Έμ„œκ΄€λ¦¬λ²ˆν˜Έ UserID : νŒλΉŒνšŒμ› 아이디 return 처리결과. consist of code and message raise PopbillException...
def search(self, CorpNum, DType, SDate, EDate, State, TradeType, TradeUsage, TaxationType, Page, PerPage, Order, UserID=None, QString=None, TradeOpt=None): """ λͺ©λ‘ 쑰회 args CorpNum : νŒλΉŒνšŒμ› μ‚¬μ—…μžλ²ˆν˜Έ DType : μΌμžμœ ν˜•, R-λ“±λ‘μΌμž, T-거래일자, I-λ°œν–‰μΌμž 쀑 택 1 ...
def getInfo(self, CorpNum, MgtKey): """ μƒνƒœ/μš”μ•½ 정보 쑰회 args CorpNum : νŒλΉŒνšŒμ› μ‚¬μ—…μžλ²ˆν˜Έ MgtKey : λ¬Έμ„œκ΄€λ¦¬λ²ˆν˜Έ return λ¬Έμ„œ μƒνƒœ/μš”μ•½ 정보 object raise PopbillException """ if MgtKey == None or MgtKey == "": ...
def getInfos(self, CorpNum, MgtKeyList): """ μƒνƒœμ •λ³΄ λ‹€λŸ‰ 확인, μ΅œλŒ€ 1000건 args CorpNum : νšŒμ› μ‚¬μ—…μž 번호 MgtKeyList : λ¬Έμ„œκ΄€λ¦¬λ²ˆν˜Έ λͺ©λ‘ return μƒνƒœμ •λ³΄ λͺ©λ‘ as List raise PopbillException """ if MgtKeyList == None ...
def getDetailInfo(self, CorpNum, MgtKey): """ 상세정보 쑰회 args CorpNum : νŒλΉŒνšŒμ› μ‚¬μ—…μžλ²ˆν˜Έ MgtKey : λ¬Έμ„œκ΄€λ¦¬λ²ˆν˜Έ return λ¬Έμ„œ 상세정보 object raise PopbillException """ if MgtKey == None or MgtKey == "": ...
def sendEmail(self, CorpNum, MgtKey, ReceiverEmail, UserID=None): """ μ•Œλ¦Όλ©”μΌ μž¬μ „μ†‘ args CorpNum : νŒλΉŒνšŒμ› μ‚¬μ—…μžλ²ˆν˜Έ MgtKey : λ¬Έμ„œκ΄€λ¦¬λ²ˆν˜Έ ReceiverEmail : μˆ˜μ‹ μž 이메일 μ£Όμ†Œ UserID : νŒλΉŒνšŒμ› 아이디 return 처리결과. consist of code and m...
def getLogs(self, CorpNum, MgtKey): """ λ¬Έμ„œμ΄λ ₯ 쑰회 args CorpNum : νŒλΉŒνšŒμ› μ‚¬μ—…μžλ²ˆν˜Έ MgtKey : λ¬Έμ„œκ΄€λ¦¬λ²ˆν˜Έ return λ¬Έμ„œ 이λ ₯ λͺ©λ‘ as List raise PopbillException """ if MgtKey == None or MgtKey == "": ...
def getEPrintURL(self, CorpNum, MgtKey, UserID=None): """ κ³΅κΈ‰λ°›λŠ”μžμš© 인쇄 URL 확인 args CorpNum : νŒλΉŒνšŒμ› μ‚¬μ—…μžλ²ˆν˜Έ MgtKey : λ¬Έμ„œκ΄€λ¦¬λ²ˆν˜Έ UserID : νŒλΉŒνšŒμ› 아이디 return 팝빌 URL as str raise PopbillException ...
def updateEmailConfig(self, Corpnum, EmailType, SendYN, UserID=None): """ μ•Œλ¦Όλ©”μΌ 전솑섀정 μˆ˜μ • args CorpNum : νŒλΉŒνšŒμ› μ‚¬μ—…μžλ²ˆν˜Έ EmailType: λ©”μΌμ „μ†‘μœ ν˜• SendYN: 전솑여뢀 (True-전솑, False-미전솑) UserID : νŒλΉŒνšŒμ› 아이디 return 처리결과. consi...
def list(self, request): """ Returns the list of documents found on the collection """ pipeline = [{'$match': request.args.pop('match', {})}] sort = request.args.pop('sort', {}) if sort: pipeline.append({'$sort': sort}) project = request.args.pop('pr...
def create(self, request): """ Creates a new document based on the given data """ document = self.collection(request.json) document.created_at = datetime.utcnow() document.updated_at = document.created_at created = document.insert() return Response( ...
def retrieve(self, request, _id): """ Returns the document containing the given _id or 404 """ _id = deserialize(_id) retrieved = self.collection.find_one({'_id': _id}) if retrieved: return Response(serialize(retrieved)) else: return Respo...
def update(self, request, _id): """ Updates the document with the given _id using the given data """ _id = deserialize(_id) to_update = self.collection.find_one({'_id': _id}) if to_update: document = self.collection(dict(to_update, **request.json)) ...
def delete(self, request, _id): """ Deletes the document with the given _id if it exists """ _id = deserialize(_id) to_delete = self.collection.get({'_id': _id}) if to_delete: deleted = to_delete.delete() return Response( response...
def with_reactor(*dec_args, **dec_kwargs): """ Decorator for test functions that require a running reactor. Can be used like this:: @with_reactor def test_connect_to_server(self): ... Or like this:: @with_reactor(timeout=10) def test_connec...
def _ensure_reactor_running(): """ Starts the twisted reactor if it is not running already. The reactor is started in a new daemon-thread. Has to perform dirty hacks so that twisted can register signals even if it is not running in the main-thread. """ if not reactor.running: ...
def _timeoutDeferred(deferred, timeout): """ Cancels the given deferred after the given time, if it has not yet callbacked/errbacked it. """ delayedCall = reactor.callLater(timeout, deferred.cancel) def gotResult(result): if delayedCall.active(): delayedCall.cancel() retu...
def find_prf_cpu(idxPrc, aryFuncChnk, aryPrfTc, aryMdlParams, strVersion, lgcXval, varNumXval, queOut, lgcRstr=None, lgcPrint=True): """ Find best fitting pRF model for voxel time course, using the CPU. Parameters ---------- idxPrc : int Process ID of the process calling th...
def check(schema, rev_id, page_id=None, radius=defaults.RADIUS, before=None, window=None): """ Checks the revert status of a revision. With this method, you can determine whether an edit is a 'reverting' edit, was 'reverted' by another edit and/or was 'reverted_to' by another edit. :Para...
def check_archive(schema, rev_id, namespace=None, title=None, timestamp=None, radius=defaults.RADIUS, before=None, window=None): """ Checks the revert status of an archived revision (from a deleted page). With this method, you can determine whether an edit is a 'reverting...
def _get_json(value): """Convert the given value to a JSON object.""" if hasattr(value, 'replace'): value = value.replace('\n', ' ') try: return json.loads(value) except json.JSONDecodeError: # Escape double quotes. if hasattr(value, 'replace'): value = value....
def save_list(key, *values): """Convert the given list of parameters to a JSON object. JSON object is of the form: { key: [values[0], values[1], ... ] }, where values represent the given list of parameters. """ return json.dumps({key: [_get_json(value) for value in values]})
def save_file(key, file_path, *refs): """Convert the given parameters to a special JSON object. JSON object is of the form: { key: {"file": file_path}}, or { key: {"file": file_path, "refs": [refs[0], refs[1], ... ]}} """ if not os.path.isfile(file_path): return error("Output '{}' set ...
def save_file_list(key, *files_refs): """Convert the given parameters to a special JSON object. Each parameter is a file-refs specification of the form: <file-path>:<reference1>,<reference2>, ..., where the colon ':' and the list of references are optional. JSON object is of the form: { key: {...
def save_dir(key, dir_path, *refs): """Convert the given parameters to a special JSON object. JSON object is of the form: { key: {"dir": dir_path}}, or { key: {"dir": dir_path, "refs": [refs[0], refs[1], ... ]}} """ if not os.path.isdir(dir_path): return error( "Output '{}'...
def save_dir_list(key, *dirs_refs): """Convert the given parameters to a special JSON object. Each parameter is a dir-refs specification of the form: <dir-path>:<reference1>,<reference2>, ..., where the colon ':' and the list of references are optional. JSON object is of the form: { key: {"dir...
def progress(progress): """Convert given progress to a JSON object. Check that progress can be represented as float between 0 and 1 and return it in JSON of the form: {"proc.progress": progress} """ if isinstance(progress, int) or isinstance(progress, float): progress = float(prog...
def checkrc(rc, *args): """Check if ``rc`` (return code) meets requirements. Check if ``rc`` is 0 or is in ``args`` list that contains acceptable return codes. Last argument of ``args`` can optionally be error message that is printed if ``rc`` doesn't meet requirements. Output is JSON of the f...
def export_file(file_path): """Prepend the given parameter with ``export``""" if not os.path.isfile(file_path): return error("Referenced file does not exist: '{}'.".format(file_path)) return "export {}".format(file_path)
def import_file( src, file_name, imported_format=ImportedFormat.BOTH, progress_from=0.0, progress_to=None, ): """Import file to working directory. :param src: Source file path or URL :param file_name: Source file name :param imported_format: Import file format (extracted, compressed...
def loadNiiData(lstNiiFls, strPathNiiMask=None, strPathNiiFunc=None): """load nii data. Parameters ---------- lstNiiFls : list, list of str with nii file names strPathNiiMask : str, path to nii file with mask (optional) strPathNiiFunc : str, p...
def calcR2(predTst, yTest, axis=0): """calculate coefficient of determination. Assumes that axis=0 is time Parameters ---------- predTst : np.array, predicted reponse for yTest yTest : np.array, acxtually observed response for yTest Returns ------- aryFunc : ...
def calcFstats(predTst, yTest, p, axis=0): """calculate coefficient of determination. Assumes that axis=0 is time Parameters ---------- predTst : np.array, predicted reponse for yTest yTest : np.array, acxtually observed response for yTest p: float, number of predictors ...
def calcMse(predTst, yTest, axis=0): """calculate mean squared error. Assumes that axis=0 is time Parameters ---------- predTst : np.array, predicted reponse for yTest yTest : np.array, acxtually observed response for yTest Returns ------- aryFunc : np.array ...
def n_day(date_string): """ date_string string in format "(number|a) day(s) ago" """ today = datetime.date.today() match = re.match(r'(\d{1,3}|a) days? ago', date_string) groups = match.groups() if groups: decrement = groups[0] if decrement...
def detect(checksum_revisions, radius=defaults.RADIUS): """ Detects reverts that occur in a sequence of revisions. Note that, `revision` data meta will simply be returned in the case of a revert. This function serves as a convenience wrapper around calls to :class:`mwreverts.Detector`'s :func:`~mw...
def getChargeInfo(self, CorpNum, ItemCode, UserID=None): """ κ³ΌκΈˆμ •λ³΄ 확인 args CorpNum : νšŒμ› μ‚¬μ—…μžλ²ˆν˜Έ ItemCode : μ „μžλͺ…μ„Έμ„œ μ’…λ₯˜μ½”λ“œ UserID : 팝빌 νšŒμ›μ•„μ΄λ”” return κ³ΌκΈˆμ •λ³΄ 객체 raise PopbillException """ ...
def getUnitCost(self, CorpNum, ItemCode): """ μ „μžλͺ…μ„Έμ„œ λ°œν–‰λ‹¨κ°€ 확인. args CorpNum : νŒλΉŒνšŒμ› μ‚¬μ—…μžλ²ˆν˜Έ ItemCode : λͺ…μ„Έμ„œ μ’…λ₯˜ μ½”λ“œ [121 - 거래λͺ…μ„Έμ„œ], [122 - μ²­κ΅¬μ„œ], [123 - κ²¬μ μ„œ], [124 - λ°œμ£Όμ„œ], [125 - μž…κΈˆν‘œ], [126 - 영수증] return ...
def FAXSend(self, CorpNum, statement, SendNum, ReceiveNum, UserID=None): """ μ„ νŒ©μŠ€ 전솑 args CorpNum : νŒλΉŒνšŒμ› μ‚¬μ—…μžλ²ˆν˜Έ statement : μ „μžλͺ…μ„Έμ„œ 객체 SendNum : 팩슀 λ°œμ‹ λ²ˆν˜Έ ReceiveNum : 팩슀 μˆ˜μ‹ λ²ˆν˜Έ UserID : νŒλΉŒνšŒμ› 아이디 return ...
def registIssue(self, CorpNum, statement, Memo=None, UserID=None): """ μ¦‰μ‹œλ°œν–‰ args CorpNum : νŒλΉŒνšŒμ› μ‚¬μ—…μžλ²ˆν˜Έ statement : 등둝할 μ „μžλͺ…μ„Έμ„œ object. made with Statement(...) Memo : μ¦‰μ‹œλ°œν–‰λ©”λͺ¨ UserID : νŒλΉŒνšŒμ› 아이디 return 처리...
def register(self, CorpNum, statement, UserID=None): """ μž„μ‹œμ €μž₯ args CorpNum : νŒλΉŒνšŒμ› μ‚¬μ—…μžλ²ˆν˜Έ statement : 등둝할 μ „μžλͺ…μ„Έμ„œ object. made with Statement(...) UserID : νŒλΉŒνšŒμ› 아이디 return 처리결과. consist of code and message ra...
def update(self, CorpNum, ItemCode, MgtKey, Statement, UserID=None): """ μž„μ‹œμ €μž₯ args CorpNum : νŒλΉŒνšŒμ› μ‚¬μ—…μžλ²ˆν˜Έ ItemCode : λͺ…μ„Έμ„œ μ’…λ₯˜ μ½”λ“œ [121 - 거래λͺ…μ„Έμ„œ], [122 - μ²­κ΅¬μ„œ], [123 - κ²¬μ μ„œ], [124 - λ°œμ£Όμ„œ], [125 - μž…κΈˆν‘œ], [126 - 영수증] M...
def issue(self, CorpNum, ItemCode, MgtKey, Memo=None, EmailSubject=None, UserID=None): """ λ°œν–‰ args CorpNum : νŒλΉŒνšŒμ› μ‚¬μ—…μžλ²ˆν˜Έ ItemCode : λͺ…μ„Έμ„œ μ’…λ₯˜ μ½”λ“œ [121 - 거래λͺ…μ„Έμ„œ], [122 - μ²­κ΅¬μ„œ], [123 - κ²¬μ μ„œ], [124 - λ°œμ£Όμ„œ], [125 - μž…κΈˆν‘œ], [126 - 영수증] ...
def cancel(self, CorpNum, ItemCode, MgtKey, Memo=None, UserID=None): """ λ°œν–‰μ·¨μ†Œ args CorpNum : νŒλΉŒνšŒμ› μ‚¬μ—…μžλ²ˆν˜Έ ItemCode : λͺ…μ„Έμ„œ μ’…λ₯˜ μ½”λ“œ [121 - 거래λͺ…μ„Έμ„œ], [122 - μ²­κ΅¬μ„œ], [123 - κ²¬μ μ„œ], [124 - λ°œμ£Όμ„œ], [125 - μž…κΈˆν‘œ], [126 - 영수증] M...
def delete(self, CorpNum, ItemCode, MgtKey, UserID=None): """ μ‚­μ œ args CorpNum : νŒλΉŒνšŒμ› μ‚¬μ—…μžλ²ˆν˜Έ ItemCode : λͺ…μ„Έμ„œ μ’…λ₯˜ μ½”λ“œ [121 - 거래λͺ…μ„Έμ„œ], [122 - μ²­κ΅¬μ„œ], [123 - κ²¬μ μ„œ], [124 - λ°œμ£Όμ„œ], [125 - μž…κΈˆν‘œ], [126 - 영수증] MgtKey : νŒŒνŠΈλ„ˆ λ¬Έ...
def search(self, CorpNum, DType, SDate, EDate, State, ItemCode, Page, PerPage, Order, UserID=None, QString=None): """ λͺ©λ‘ 쑰회 args CorpNum : νŒλΉŒνšŒμ› μ‚¬μ—…μžλ²ˆν˜Έ DType : μΌμžμœ ν˜•, R-λ“±λ‘μΌμ‹œ, W-μž‘μ„±μΌμž, I-λ°œν–‰μΌμ‹œ 쀑 택 1 SDate : μ‹œμž‘μΌμž, ν‘œμ‹œν˜•μ‹(yyyyMMdd) EDate : ...
def getInfo(self, CorpNum, ItemCode, MgtKey): """ μƒνƒœ/μš”μ•½ 정보 확인 args CorpNum : νŒλΉŒνšŒμ› μ‚¬μ—…μžλ²ˆν˜Έ ItemCode : λͺ…μ„Έμ„œ μ’…λ₯˜ μ½”λ“œ [121 - 거래λͺ…μ„Έμ„œ], [122 - μ²­κ΅¬μ„œ], [123 - κ²¬μ μ„œ], [124 - λ°œμ£Όμ„œ], [125 - μž…κΈˆν‘œ], [126 - 영수증] MgtKey : νŒŒνŠΈλ„ˆ λ¬Έμ„œκ΄€λ¦¬...
def getDetailInfo(self, CorpNum, ItemCode, MgtKey): """ μ „μžλͺ…μ„Έμ„œ 상세정보 확인 args CorpNum : νŒλΉŒνšŒμ› μ‚¬μ—…μžλ²ˆν˜Έ ItemCode : λͺ…μ„Έμ„œ μ’…λ₯˜ μ½”λ“œ [121 - 거래λͺ…μ„Έμ„œ], [122 - μ²­κ΅¬μ„œ], [123 - κ²¬μ μ„œ], [124 - λ°œμ£Όμ„œ], [125 - μž…κΈˆν‘œ], [126 - 영수증] MgtKey : ...
def sendSMS(self, CorpNum, ItemCode, MgtKey, Sender, Receiver, Contents, UserID=None): """ μ•Œλ¦Όλ¬Έμž 전솑 args CorpNum : νŒλΉŒνšŒμ› μ‚¬μ—…μžλ²ˆν˜Έ ItemCode : λͺ…μ„Έμ„œ μ’…λ₯˜ μ½”λ“œ [121 - 거래λͺ…μ„Έμ„œ], [122 - μ²­κ΅¬μ„œ], [123 - κ²¬μ μ„œ], [124 - λ°œμ£Όμ„œ], [125 - μž…κΈˆν‘œ], [126 - 영수...
def getLogs(self, CorpNum, ItemCode, MgtKey): """ μ „μžλͺ…μ„Έμ„œ λ¬Έμ„œμ΄λ ₯ λͺ©λ‘ 확인 args CorpNum : νŒλΉŒνšŒμ› μ‚¬μ—…μžλ²ˆν˜Έ ItemCode : λͺ…μ„Έμ„œ μ’…λ₯˜ μ½”λ“œ [121 - 거래λͺ…μ„Έμ„œ], [122 - μ²­κ΅¬μ„œ], [123 - κ²¬μ μ„œ], [124 - λ°œμ£Όμ„œ], [125 - μž…κΈˆν‘œ], [126 - 영수증] MgtKey : νŒŒνŠΈλ„ˆ...
def attachFile(self, CorpNum, ItemCode, MgtKey, FilePath, UserID=None): """ 파일 첨뢀 args CorpNum : νŒλΉŒνšŒμ› μ‚¬μ—…μžλ²ˆν˜Έ ItemCode : λͺ…μ„Έμ„œ μ’…λ₯˜ μ½”λ“œ [121 - 거래λͺ…μ„Έμ„œ], [122 - μ²­κ΅¬μ„œ], [123 - κ²¬μ μ„œ], [124 - λ°œμ£Όμ„œ], [125 - μž…κΈˆν‘œ], [126 - 영수증] ...
def getFiles(self, CorpNum, ItemCode, MgtKey): """ μ²¨λΆ€νŒŒμΌ λͺ©λ‘ 확인 args CorpNum : νŒλΉŒνšŒμ› μ‚¬μ—…μžλ²ˆν˜Έ ItemCode : λͺ…μ„Έμ„œ μ’…λ₯˜ μ½”λ“œ [121 - 거래λͺ…μ„Έμ„œ], [122 - μ²­κ΅¬μ„œ], [123 - κ²¬μ μ„œ], [124 - λ°œμ£Όμ„œ], [125 - μž…κΈˆν‘œ], [126 - 영수증] MgtKey : νŒŒνŠΈλ„ˆ λ¬Έμ„œκ΄€λ¦¬...
def deleteFile(self, CorpNum, ItemCode, MgtKey, FileID, UserID=None): """ μ²¨λΆ€νŒŒμΌ μ‚­μ œ args CorpNum : νŒλΉŒνšŒμ› μ‚¬μ—…μžλ²ˆν˜Έ ItemCode : λͺ…μ„Έμ„œ μ’…λ₯˜ μ½”λ“œ [121 - 거래λͺ…μ„Έμ„œ], [122 - μ²­κ΅¬μ„œ], [123 - κ²¬μ μ„œ], [124 - λ°œμ£Όμ„œ], [125 - μž…κΈˆν‘œ], [126 - 영수증] ...
def getMassPrintURL(self, CorpNum, ItemCode, MgtKeyList, UserID=None): """ λ‹€λŸ‰ 인쇄 URL 확인 args CorpNum : νŒλΉŒνšŒμ› μ‚¬μ—…μžλ²ˆν˜Έ ItemCode : λͺ…μ„Έμ„œ μ’…λ₯˜ μ½”λ“œ [121 - 거래λͺ…μ„Έμ„œ], [122 - μ²­κ΅¬μ„œ], [123 - κ²¬μ μ„œ], [124 - λ°œμ£Όμ„œ], [125 - μž…κΈˆν‘œ], [126 - 영수증] ...
def attachStatement(self, CorpNum, ItemCode, MgtKey, SubItemCode, SubMgtKey, UserID=None): """ λ‹€λ₯Έ μ „μžλͺ…μ„Έμ„œ 첨뢀 args CorpNum : νŒλΉŒνšŒμ› μ‚¬μ—…μžλ²ˆν˜Έ ItemCode : μ „μžλͺ…μ„Έμ„œ μ’…λ₯˜μ½”λ“œ, 121-λͺ…μ„Έμ„œ, 122-μ²­κ΅¬μ„œ, 123-κ²¬μ μ„œ, 124-λ°œμ£Όμ„œ 125-μž…κΈˆν‘œ, 126-영수증 MgtKey : μ „μžλͺ…μ„Έμ„œ λ¬Έμ„œκ΄€λ¦¬λ²ˆν˜Έ ...
def process(self, article): """ Ingests an article and processes it for metadata and elements to provide proper references in the EPUB spine. This method may only be called once unless the Package was instantiated in collection mode using ``Package(collection=True)``. It places ...
def acquire_metadata(self): """ Handles the acquisition of metadata for both collection mode and single mode, uses the metadata methods belonging to the article's publisher attribute. """ #For space economy publisher = self.article.publisher if self.colle...
def file_manifest(self, location): """ An iterator through the files in a location which yields item elements suitable for insertion into the package manifest. """ #Maps file extensions to mimetypes mimetypes = {'.jpg': 'image/jpeg', '.jpeg': 'image/j...
def get_contrib_names(self, contrib): """ Returns an appropriate Name and File-As-Name for a contrib element. This code was refactored out of nav_contributors and package_contributors to provide a single definition point for a common job. This is a useful utility that may be wel...
def package_description(self): """ Given an Article class instance, this is responsible for returning an article description. For this method I have taken the approach of serializing the article's first abstract, if it has one. This results in 0 or 1 descriptions per article. ...
def heading_title(self): """ Makes the Article Title for the Heading. Metadata element, content derived from FrontMatter """ art_title = self.article.root.xpath('./front/article-meta/title-group/article-title')[0] article_title = deepcopy(art_title) article_title...
def make_heading_authors(self, authors): """ Constructs the Authors content for the Heading. This should display directly after the Article Title. Metadata element, content derived from FrontMatter """ author_element = etree.Element('h3', {'class': 'authors'}) #C...
def make_heading_affiliations(self, heading_div): """ Makes the content for the Author Affiliations, displays after the Authors segment in the Heading. Metadata element, content derived from FrontMatter """ #Get all of the aff element tuples from the metadata aff...
def make_heading_abstracts(self, heading_div): """ An article may contain data for various kinds of abstracts. This method works on those that are included in the Heading. This is displayed after the Authors and Affiliations. Metadata element, content derived from FrontMatter ...
def make_article_info(self): """ The Article Info contains the (self) Citation, Editors, Dates, Copyright, Funding Statement, Competing Interests Statement, Correspondence, and Footnotes. Maybe more... This content follows the Heading and precedes the Main segment in the ...
def make_article_info_citation(self): """ Creates a self citation node for the ArticleInfo of the article. This method uses code from this page as a reference implementation: https://github.com/PLOS/ambra/blob/master/base/src/main/resources/articleTransform-v3.xsl """ ci...
def make_article_info_dates(self): """ Makes the section containing important dates for the article: typically Received, Accepted, and Published. """ dates_div = etree.Element('div', {'id': 'article-dates'}) d = './front/article-meta/history/date' received = self...
def make_article_info_copyright(self, article_info_div): """ Makes the copyright section for the ArticleInfo. For PLoS, this means handling the information contained in the metadata <permissions> element. """ perm = self.article.root.xpath('./front/article-meta/permission...
def make_article_info_funding(self, article_info_div): """ Creates the element for declaring Funding in the article info. """ funding_group = self.article.root.xpath('./front/article-meta/funding-group') if funding_group: funding_div = etree.SubElement(article_info_di...
def make_article_info_competing_interests(self, article_info_div): """ Creates the element for declaring competing interests in the article info. """ #Check for author-notes con_expr = "./front/article-meta/author-notes/fn[@fn-type='conflict']" conflict = self.art...
def make_article_info_correspondences(self, article_info_div): """ Articles generally provide a first contact, typically an email address for one of the authors. This will supply that content. """ corresps = self.article.root.xpath('./front/article-meta/author-notes/corresp') ...
def make_article_info_footnotes_other(self, article_info_div): """ This will catch all of the footnotes of type 'other' in the <fn-group> of the <back> element. """ other_fn_expr = "./back/fn-group/fn[@fn-type='other']" other_fns = self.article.root.xpath(other_fn_expr) ...
def make_back_matter(self): """ The <back> element may have 0 or 1 <label> elements and 0 or 1 <title> elements. Then it may have any combination of the following: <ack>, <app-group>, <bio>, <fn-group>, <glossary>, <ref-list>, <notes>, and <sec>. <sec> is employed here as a catch...
def move_back_boxed_texts(self): """ The only intended use for this function is to patch a problem seen in at least one PLoS article (journal.pgen.0020002). This will move any <boxed-text> elements over to the receiving element, which is probably the main body. """ ...
def make_back_acknowledgments(self): """ The <ack> is an important piece of back matter information, and will be including immediately after the main text. This element should only occur once, optionally, for PLoS, if a need becomes known, then multiple instances may be supporte...
def make_back_author_contributions(self, body): """ Though this goes in the back of the document with the rest of the back matter, it is not an element found under <back>. I don't expect to see more than one of these. Compare this method to make_article_info_competing_interests(...
def make_back_glossary(self, body): """ Glossaries are a fairly common item in papers for PLoS, but it also seems that they are rarely incorporated into the PLoS web-site or PDF formats. They are included in the ePub output however because they are helpful and because we can. ...
def make_back_notes(self, body): """ The notes element in PLoS articles can be employed for posting notices of corrections or adjustments in proof. The <notes> element has a very diverse content model, but PLoS practice appears to be fairly consistent: a single <sec> containing a...
def convert_disp_formula_elements(self): """ <disp-formula> elements must be converted to conforming elements """ for disp in self.main.getroot().findall('.//disp-formula'): #find label element label_el = disp.find('label') graphic_el = disp.find('grap...
def convert_inline_formula_elements(self): """ <inline-formula> elements must be converted to be conforming These elements may contain <inline-graphic> elements, textual content, or both. """ for inline in self.main.getroot().findall('.//inline-formula'): #in...
def convert_disp_quote_elements(self): """ Extract or extended quoted passage from another work, usually made typographically distinct from surrounding text <disp-quote> elements have a relatively complex content model, but PLoS appears to employ either <p>s or <list>s. ...
def convert_boxed_text_elements(self): """ Textual material that is part of the body of text but outside the flow of the narrative text, for example, a sidebar, marginalia, text insert (whether enclosed in a box or not), caution, tip, note box, etc. <boxed-text> elements for PLo...
def convert_supplementary_material_elements(self): """ Supplementary material are not, nor are they generally expected to be, packaged into the epub file. Though this is a technical possibility, and certain epub reading systems (such as those run on a PC) might be reasonably capa...
def fetch_single_representation(self, item_xlink_href): """ This function will render a formatted URL for accessing the PLoS' server SingleRepresentation of an object. """ #A dict of URLs for PLoS subjournals journal_urls = {'pgen': 'http://www.plosgenetics.org/article/{0...
def convert_fig_elements(self): """ Responsible for the correct conversion of JPTS 3.0 <fig> elements to EPUB xhtml. Aside from translating <fig> to <img>, the content model must be edited. """ for fig in self.main.getroot().findall('.//fig'): if fig.getparent...
def convert_verse_group_elements(self): """ A song, poem, or verse Implementor’s Note: No attempt has been made to retain the look or visual form of the original poetry. This unusual element, <verse-group> is used to convey poetry and is recursive in nature (it may cont...
def convert_fn_elements(self): """ <fn> elements may be used in the main text body outside of tables and figures for purposes such as erratum notes. It appears that PLoS practice is to not show erratum notes in the web or pdf formats after the appropriate corrections have been ma...
def convert_list_elements(self): """ A sequence of two or more items, which may or may not be ordered. The <list> element has an optional <label> element and optional <title> element, followed by one or more <list-item> elements. This is element is recursive as the <list-item> e...