text stringlengths 81 112k |
|---|
Raises PySimpleValidateException if the arguments are invalid. This is called by
the validateTime() function to check its arguments. This code was
refactored out to a separate function so that the PyInputPlus module (or
other modules) could check their parameters' arguments for inputTime().
def _validatePa... |
Raises ValidationException if value is not a time formatted in one
of the formats formats. Returns a datetime.time object of value.
* value (str): The value being validated as a time.
* blank (bool): If True, a blank string will be accepted. Defaults to False.
* strip (bool, str, None): If None, whites... |
Raises ValidationException if value is not a time formatted in one
of the formats formats. Returns a datetime.date object of value.
* value (str): The value being validated as a time.
* blank (bool): If True, a blank string for value will be accepted.
* strip (bool, str, None): If None, whitespace is s... |
Raises ValidationException if value is not a datetime formatted in one
of the formats formats. Returns a datetime.datetime object of value.
* value (str): The value being validated as a datetime.
* blank (bool): If True, a blank string will be accepted. Defaults to False.
* strip (bool, str, None): If ... |
Raises ValidationException if value is not a valid filename.
Filenames can't contain \\ / : * ? " < > | or end with a space.
Returns the value argument.
Note that this validates filenames, not filepaths. The / and \\ characters
are invalid for filenames.
* value (str): The value being validated as... |
r"""Raises ValidationException if value is not a valid filename.
Filenames can't contain \\ / : * ? " < > |
Returns the value argument.
* value (str): The value being validated as an IP address.
* blank (bool): If True, a blank string will be accepted. Defaults to False.
* strip (bool, str, None): ... |
Raises ValidationException if value is not an IPv4 or IPv6 address.
Returns the value argument.
* value (str): The value being validated as an IP address.
* blank (bool): If True, a blank string will be accepted. Defaults to False.
* strip (bool, str, None): If None, whitespace is stripped from value. ... |
Raises ValidationException if value does not match the regular expression in regex.
Returns the value argument.
This is similar to calling inputStr() and using the allowlistRegexes
keyword argument, however, validateRegex() allows you to pass regex
flags such as re.IGNORECASE or re.VERBOSE. You can als... |
Raises ValidationException if value can't be used as a regular expression string.
Returns the value argument as a regex object.
If you want to check if a string matches a regular expression, call
validateRegex().
* value (str): The value being validated as a regular expression string.
* regex (str... |
Raises ValidationException if value is not a URL.
Returns the value argument.
The "http" or "https" protocol part of the URL is optional.
* value (str): The value being validated as a URL.
* blank (bool): If True, a blank string will be accepted. Defaults to False.
* strip (bool, str, None): If N... |
Raises ValidationException if value is not an email address.
Returns the value argument.
* value (str): The value being validated as an email address.
* blank (bool): If True, a blank string will be accepted. Defaults to False.
* strip (bool, str, None): If None, whitespace is stripped from value. If ... |
Raises ValidationException if value is not a yes or no response.
Returns the yesVal or noVal argument, not value.
Note that value can be any case (by default) and can also just match the
* value (str): The value being validated as an email address.
* blank (bool): If True, a blank string will be acce... |
Raises ValidationException if value is not an email address.
Returns the yesVal or noVal argument, not value.
* value (str): The value being validated as an email address.
* blank (bool): If True, a blank string will be accepted. Defaults to False.
* strip (bool, str, None): If None, whitespace is str... |
Raises ValidationException if value is not a USA state.
Returns the capitalized state abbreviation, unless returnStateName is True
in which case it returns the titlecased state name.
* value (str): The value being validated as an email address.
* blank (bool): If True, a blank string will be accepted.... |
Raises ValidationException if value is not a month, like 'Jan' or 'March'.
Returns the titlecased month.
* value (str): The value being validated as an email address.
* blank (bool): If True, a blank string will be accepted. Defaults to False.
* strip (bool, str, None): If None, whitespace is stripped... |
Raises ValidationException if value is not a day of the week, such as 'Mon' or 'Friday'.
Returns the titlecased day of the week.
* value (str): The value being validated as a day of the week.
* blank (bool): If True, a blank string will be accepted. Defaults to False.
* strip (bool, str, None): If Non... |
Raises ValidationException if value is not a day of the month, from
1 to 28, 29, 30, or 31 depending on the month and year.
Returns value.
* value (str): The value being validated as existing as a numbered day in the given year and month.
* year (int): The given year.
* month (int): The given month... |
Returns an appropriate logging level integer from a string name
def get_level(level_string):
"""
Returns an appropriate logging level integer from a string name
"""
levels = {'debug': logging.DEBUG, 'info': logging.INFO,
'warning': logging.WARNING, 'error': logging.ERROR,
'c... |
Configures and generates a Logger object, 'openaccess_epub' based on common
parameters used for console interface script execution in OpenAccess_EPUB.
These parameters are:
no_log_file
Boolean. Disables logging to file. If set to True, log_to and
log_level become irrelevant.
log... |
This utility function will remove a previous Logger FileHandler, if one
exists, and add a new filehandler.
Parameters:
logname
The name of the log to reconfigure, 'openaccess_epub' for example
new_file
The file location for the new FileHandler
level
Optional. Lev... |
Remap x, y, sigma parameters from pixel to degree.
Parameters
----------
vecX : 1D numpy array
Array with possible x parametrs in pixels
vecY : 1D numpy array
Array with possible y parametrs in pixels
vecPrfSd : 1D numpy array
Array with possible sd parametrs in pixels
t... |
Create an array with all possible model parameter combinations
Parameters
----------
tplPngSize : tuple, 2
Pixel dimensions of the visual space (width, height).
varNum1 : int, positive
Number of x-positions to model
varExtXmin : float
Extent of visual space from centre in ne... |
Create responses of 2D Gauss models to spatial conditions.
Parameters
----------
arySptExpInf : 3d numpy array, shape [n_x_pix, n_y_pix, n_conditions]
All spatial conditions stacked along second axis.
tplPngSize : tuple, 2
Pixel dimensions of the visual space (width, height).
aryMdl... |
Create temporally upsampled neural time courses.
Parameters
----------
aryMdlRsp : 2d numpy array, shape [n_x_pos * n_y_pos * n_sd, n_cond]
Responses of 2D Gauss models to spatial conditions.
aryCnd : np.array
1D array with condition identifiers (every condition has its own int)
ary... |
Convolve every neural time course with HRF function.
Parameters
----------
aryNrlTc : 4d numpy array, shape [n_x_pos, n_y_pos, n_sd, n_vol]
Temporally upsampled neural time course models.
varNumVol : float, positive
Number of volumes of the (fMRI) data.
varTr : float, positive
... |
Create all spatial x feature prf time courses.
Parameters
----------
aryMdlRsp : 2d numpy array, shape [n_x_pos * n_y_pos * n_sd, n_cond]
Responses of 2D Gauss models to spatial conditions
aryTmpExpInf: 2d numpy array, shape [unknown, 4]
Temporal information about conditions
varNumV... |
Find unique rows in 2D array.
Parameters
----------
A : 2d numpy array
Array for which unique rows should be identified.
return_index : bool
Bool to decide whether I is returned.
return_inverse : bool
Bool to decide whether J is returned.
Returns
-------
B : 1d ... |
Make a request against air-matters.com.
async def _request(
self, method: str, endpoint: str, *, headers: dict = None) -> dict:
"""Make a request against air-matters.com."""
url = '{0}/{1}'.format(API_URL_SCAFFOLD, endpoint)
if not headers:
headers = {}
headers.... |
This filter process the returned response. It does 3 things:
- If the response is a ``sanic.response.HTTPResponse`` and not a
:class:`rafter.http.Response`, return it immediately.
- If the response is not a :class:`rafter.http.Response` instance,
turn it to a :class:`rafter.http.Response` instance ... |
This method defines how the Article tries to determine the publisher of
the article.
This method relies on the success of the get_DOI method to fetch the
appropriate full DOI for the article. It then takes the DOI prefix
which corresponds to the publisher and then uses that to attempt t... |
This method defines how the Article tries to detect the DOI.
It attempts to determine the article DOI string by DTD-appropriate
inspection of the article metadata. This method should be made as
flexible as necessary to properly collect the DOI for any XML
publishing specification.
... |
Least squares fitting in numpy without cross-validation.
Notes
-----
This is just a wrapper function for np.linalg.lstsq to keep piping
consistent.
def np_lst_sq(vecMdl, aryFuncChnk):
"""Least squares fitting in numpy without cross-validation.
Notes
-----
This is just a wrapper functi... |
Least squares fitting in numpy with cross-validation.
def np_lst_sq_xval(vecMdl, aryFuncChnk, aryIdxTrn, aryIdxTst):
"""Least squares fitting in numpy with cross-validation.
"""
varNumXval = aryIdxTrn.shape[-1]
varNumVoxChnk = aryFuncChnk.shape[-1]
# pre-allocate ary to collect cross-validation
... |
Return user report data (if accompanied by latitude/longitude).
async def _raw_user_report_data(self) -> list:
"""Return user report data (if accompanied by latitude/longitude)."""
data = await self._request('get', 'map/markers')
return [
location for location in data
if... |
Return a list of states.
async def _raw_state_data(self) -> list:
"""Return a list of states."""
data = await self._request('get', 'states')
return [
location for location in data
if location['name'] != 'United States'
] |
Get the nearest report (with local and state info) to a lat/lon.
async def nearest_by_coordinates(
self, latitude: float, longitude: float) -> dict:
"""Get the nearest report (with local and state info) to a lat/lon."""
# Since user data is more granular than state or CDC data, find the
... |
size specifies the maximum amount of history to keep
def initialize(self, maxsize, history=None):
'''size specifies the maximum amount of history to keep'''
super().__init__()
self.maxsize = int(maxsize)
self.history = deque(maxlen=self.maxsize) # Preserves order history
# If... |
Adds a new key-value pair. Returns any discarded values.
def insert(self, key, value):
'''Adds a new key-value pair. Returns any discarded values.'''
# Add to history and catch expectorate
if len(self.history) == self.maxsize:
expectorate = self.history[0]
else:
... |
Gets the recently inserted values up to a key
def up_to(self, key):
'''Gets the recently inserted values up to a key'''
for okey, ovalue in reversed(self.history):
if okey == key:
break
else:
yield ovalue |
Decorates a function to be registered as a resource route.
:param uri: path of the URL
:param methods: list or tuple of methods allowed
:param host:
:param strict_slashes:
:param stream:
:param version:
:param name: user defined route name for url_for
:pa... |
Register a resource route.
:param handler: function or class instance
:param uri: path of the URL
:param methods: list or tuple of methods allowed
:param host:
:param strict_slashes:
:param version:
:param name: user defined route name for url_for
:param ... |
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.
:Parameters:
session : :class:`mwapi.Session`
An API session to make use of
rev_id : int
... |
Checks the revert status of a deleted 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.
:Parameters:
session : :class:`mwapi.Session`
An API session to make use of
rev_id... |
Find all commits between two commit SHAs.
def get_commits(repo_dir, old_commit, new_commit, hide_merges=True):
"""Find all commits between two commit SHAs."""
repo = Repo(repo_dir)
commits = repo.iter_commits(rev="{0}..{1}".format(old_commit, new_commit))
if hide_merges:
return [x for x in comm... |
Determine URL to view commits for repo.
def get_commit_url(repo_url):
"""Determine URL to view commits for repo."""
if "github.com" in repo_url:
return repo_url[:-4] if repo_url.endswith(".git") else repo_url
if "git.openstack.org" in repo_url:
uri = '/'.join(repo_url.split('/')[-2:])
... |
Get all projects from multiple YAML files.
def get_projects(osa_repo_dir, commit):
"""Get all projects from multiple YAML files."""
# Check out the correct commit SHA from the repository
repo = Repo(osa_repo_dir)
checkout(repo, commit)
yaml_files = glob.glob(
'{0}/playbooks/defaults/repo_p... |
Checkout a repoself.
def checkout(repo, ref):
"""Checkout a repoself."""
# Delete local branch if it exists, remote branch will be tracked
# automatically. This prevents stale local branches from causing problems.
# It also avoids problems with appending origin/ to refs as that doesn't
# work with ... |
Read OSA role information at a particular commit.
def get_roles(osa_repo_dir, commit, role_requirements):
"""Read OSA role information at a particular commit."""
repo = Repo(osa_repo_dir)
checkout(repo, commit)
log.info("Looking for file {f} in repo {r}".format(r=osa_repo_dir,
... |
Create initial RST report header for OpenStack-Ansible.
def make_osa_report(repo_dir, old_commit, new_commit,
args):
"""Create initial RST report header for OpenStack-Ansible."""
update_repo(repo_dir, args.osa_repo_url, args.update)
# Are these commits valid?
validate_commits(repo_... |
Create RST report from a list of projects/roles.
def make_report(storage_directory, old_pins, new_pins, do_update=False,
version_mappings=None):
"""Create RST report from a list of projects/roles."""
report = ""
version_mappings = version_mappings or {}
for new_pin in new_pins:
... |
Normalize the YAML from project and role lookups.
These are returned as a list of tuples.
def normalize_yaml(yaml):
"""Normalize the YAML from project and role lookups.
These are returned as a list of tuples.
"""
if isinstance(yaml, list):
# Normalize the roles YAML data
normalize... |
Post the report to a GitHub Gist and return the URL of the gist.
def post_gist(report_data, old_sha, new_sha):
"""Post the report to a GitHub Gist and return the URL of the gist."""
payload = {
"description": ("Changes in OpenStack-Ansible between "
"{0} and {1}".format(old_sha,... |
Prepare the storage directory.
def prepare_storage_dir(storage_directory):
"""Prepare the storage directory."""
storage_directory = os.path.expanduser(storage_directory)
if not os.path.exists(storage_directory):
os.mkdir(storage_directory)
return storage_directory |
Render a jinja template.
def render_template(template_file, template_vars):
"""Render a jinja template."""
# Load our Jinja templates
template_dir = "{0}/templates".format(
os.path.dirname(os.path.abspath(__file__))
)
jinja_env = jinja2.Environment(
loader=jinja2.FileSystemLoader(te... |
Reset repository and optionally update it.
def repo_pull(repo_dir, repo_url, fetch=False):
"""Reset repository and optionally update it."""
# Make sure the repository is reset to the master branch.
repo = Repo(repo_dir)
repo.git.clean("-df")
repo.git.reset("--hard")
repo.git.checkout("master")
... |
Clone the repo if it doesn't exist already, otherwise update it.
def update_repo(repo_dir, repo_url, fetch=False):
"""Clone the repo if it doesn't exist already, otherwise update it."""
repo_exists = os.path.exists(repo_dir)
if not repo_exists:
log.info("Cloning repo {}".format(repo_url))
r... |
Test if a commit is valid for the repository.
def validate_commits(repo_dir, commits):
"""Test if a commit is valid for the repository."""
log.debug("Validating {c} exist in {r}".format(c=commits, r=repo_dir))
repo = Repo(repo_dir)
for commit in commits:
try:
commit = repo.commit(co... |
Check if commit range is valid. Flip it if needed.
def validate_commit_range(repo_dir, old_commit, new_commit):
"""Check if commit range is valid. Flip it if needed."""
# Are there any commits between the two commits that were provided?
try:
commits = get_commits(repo_dir, old_commit, new_commit)
... |
Get release notes between the two revisions.
def get_release_notes(osa_repo_dir, osa_old_commit, osa_new_commit):
"""Get release notes between the two revisions."""
repo = Repo(osa_repo_dir)
# Get a list of tags, sorted
tags = repo.git.tag().split('\n')
tags = sorted(tags, key=LooseVersion)
# ... |
Start here.
def run_osa_differ():
"""Start here."""
# Get our arguments from the command line
args = parse_arguments()
# Set up DEBUG logging if needed
if args.debug:
log.setLevel(logging.DEBUG)
elif args.verbose:
log.setLevel(logging.INFO)
# Create the storage directory i... |
This method provides the functionality of adding text appropriately
underneath the destination node. This will be either to the destination's
text attribute or to the tail attribute of the last child.
def append_new_text(destination, text, join_str=None):
"""
This method provides the functionality of a... |
Compared to xml.dom.minidom, lxml's treatment of text as .text and .tail
attributes of elements is an oddity. It can even be a little frustrating
when one is attempting to copy everything underneath some element to
another element; one has to write in extra code to handle the text. This
method provides ... |
A method for extending lxml's functionality, this will find and concatenate
all text data that exists one level immediately underneath the given
element. Unlike etree.tostring(element, method='text'), this will not
recursively walk the entire underlying tree. It merely combines the element
text attribut... |
This method will remove all attributes of any provided element.
A list of strings may be passed to the keyward-argument "exclude", which
will serve as a list of attributes which will not be removed.
def remove_all_attributes(element, exclude=None):
"""
This method will remove all attributes of any pro... |
Provides a convenient method for adapting a tag or attribute name to
use lxml's format. Use this for tags like ops:switch or attributes like
xlink:href.
def ns_format(element, namespaced_string):
"""
Provides a convenient method for adapting a tag or attribute name to
use lxml's format. Use this fo... |
Renames the attributes of the element. Accepts the element and a dictionary
of string values. The keys are the original names, and their values will be
the altered names. This method treats all attributes as optional and will
not fail on missing attributes.
def rename_attributes(element, attrs):
"""
... |
This method serves a specialized function. It comes up most often when
working with block level elements that may not be contained within
paragraph elements, which are presented in the source document as
inline elements (inside a paragraph element).
It would be inappropriate to merely i... |
A simple way to replace one element node with another.
def replace(old, new):
"""
A simple way to replace one element node with another.
"""
parent = old.getparent()
parent.replace(old, new) |
A simple way to insert a new element node before the old element node among
its siblings.
def insert_before(old, new):
"""
A simple way to insert a new element node before the old element node among
its siblings.
"""
parent = old.getparent()
parent.insert(parent.index(old), new) |
Converts the node received to a comment, in place, and will also return the
comment element.
def comment(node):
"""
Converts the node received to a comment, in place, and will also return the
comment element.
"""
parent = node.parentNode
comment = node.ownerDocument.createComment(node.toxml... |
Converts the comment node received to a non-commented element, in place,
and will return the new node.
This may fail, primarily due to special characters within the comment that
the xml parser is unable to handle. If it fails, this method will log an
error and return None
def uncomment(comment):
"... |
A handy way to serialize an element to text.
def serialize(element, strip=False):
"""
A handy way to serialize an element to text.
"""
text = etree.tostring(element, method='text', encoding='utf-8')
if strip:
text = text.strip()
return str(text, encoding='utf-8') |
Parses the Command Line Arguments using argparse.
def get_arg_parse():
"""Parses the Command Line Arguments using argparse."""
# Create parser object:
objParser = argparse.ArgumentParser()
# Add argument to namespace -config file path:
objParser.add_argument('-config', required=True,
... |
pyprf_opt_brute entry point.
def main():
"""pyprf_opt_brute entry point."""
# Get list of input arguments (without first one, which is the path to the
# function that is called): --NOTE: This is another way of accessing
# input arguments, but since we use 'argparse' it is redundant.
# lstArgs = sy... |
Make data filter definition consistent.
Create a tuple where first element is the row filter and the second element
is the column filter
def _homogenize_data_filter(dfilter):
"""
Make data filter definition consistent.
Create a tuple where first element is the row filter and the second element
... |
Convert to float if object is a float string.
def _tofloat(obj):
"""Convert to float if object is a float string."""
if "inf" in obj.lower().strip():
return obj
try:
return int(obj)
except ValueError:
try:
return float(obj)
except ValueError:
retu... |
Validate column identifier(s).
def _in_header(self, col):
"""Validate column identifier(s)."""
# pylint: disable=R1704
if not self._has_header:
# Conditionally register exceptions so that they do not appear
# in situations where has_header is always True. In this way
... |
Validate frow argument.
def _validate_frow(self, frow):
"""Validate frow argument."""
is_int = isinstance(frow, int) and (not isinstance(frow, bool))
pexdoc.exh.addai("frow", not (is_int and (frow >= 0)))
return frow |
Validate that all columns in filter are in header.
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)
... |
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: Filtering type
:type filtered: :ref:`CsvFiltered`... |
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:
* RuntimeError (Argument \`order\` is no... |
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 is loaded without header (column zero is t... |
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-generated exceptions documentation for
..... |
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
is overwritten
:type fname: FileName_
:param f... |
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
strPathHrf : str or None:
Path to npy file with custom hrf parameters. I... |
현금영수증 즉시발행
args
CorpNum : 팝빌회원 사업자번호
cashbill : 등록할 현금영수증 object. made with Cashbill(...)
UserID : 팝빌회원 아이디
return
처리결과. consist of code and message
raise
PopbillException
def registIssue(self, C... |
현금영수증 등록
args
CorpNum : 팝빌회원 사업자번호
cashbill : 등록할 현금영수증 object. made with Cashbill(...)
UserID : 팝빌회원 아이디
return
처리결과. consist of code and message
raise
PopbillException
def register(self, CorpNu... |
취소현금영수증 즉시발행
args
CorpNum : 팝빌회원 사업자번호
mgtKey : 현금영수증 문서관리번호
orgConfirmNum : 원본현금영수증 승인번호
orgTradeDate : 원본현금영수증 거래일자
smssendYN : 발행안내문자 전송여부
memo : 메모
UserID : 팝빌회원 아이디
i... |
수정
args
CorpNum : 팝빌회원 사업자번호
MgtKey : 원본 현금영수증 문서관리번호
cashbill : 수정할 현금영수증 object. made with Cashbill(...)
UserID : 팝빌회원 아이디
return
처리결과. consist of code and message
raise
Popbill... |
발행
args
CorpNum : 팝빌회원 사업자번호
MgtKey : 원본 현금영수증 문서관리번호
Memo : 발행 메모
UserID : 팝빌회원 아이디
return
처리결과. consist of code and message
raise
PopbillException
def issue(self, CorpNum, MgtK... |
삭제
args
CorpNum : 팝빌회원 사업자번호
MgtKey : 원본 현금영수증 문서관리번호
UserID : 팝빌회원 아이디
return
처리결과. consist of code and message
raise
PopbillException
def delete(self, CorpNum, MgtKey, UserID=None):
""... |
목록 조회
args
CorpNum : 팝빌회원 사업자번호
DType : 일자유형, R-등록일자, T-거래일자, I-발행일자 중 택 1
SDate : 시작일자, 표시형식(yyyyMMdd)
EDate : 종료일자, 표시형식(yyyyMMdd)
State : 상태코드 배열, 2,3번째 자리에 와일드카드(*) 사용가능
TradeType : 문서형태 배열, N-일반현금영수증,... |
상태/요약 정보 조회
args
CorpNum : 팝빌회원 사업자번호
MgtKey : 문서관리번호
return
문서 상태/요약 정보 object
raise
PopbillException
def getInfo(self, CorpNum, MgtKey):
""" 상태/요약 정보 조회
args
CorpNum : 팝빌회... |
상태정보 다량 확인, 최대 1000건
args
CorpNum : 회원 사업자 번호
MgtKeyList : 문서관리번호 목록
return
상태정보 목록 as List
raise
PopbillException
def getInfos(self, CorpNum, MgtKeyList):
""" 상태정보 다량 확인, 최대 1000건
args
... |
상세정보 조회
args
CorpNum : 팝빌회원 사업자번호
MgtKey : 문서관리번호
return
문서 상세정보 object
raise
PopbillException
def getDetailInfo(self, CorpNum, MgtKey):
""" 상세정보 조회
args
CorpNum : 팝빌회원 사업자번... |
알림메일 재전송
args
CorpNum : 팝빌회원 사업자번호
MgtKey : 문서관리번호
ReceiverEmail : 수신자 이메일 주소
UserID : 팝빌회원 아이디
return
처리결과. consist of code and message
raise
PopbillException
def sendEmail(self... |
문서이력 조회
args
CorpNum : 팝빌회원 사업자번호
MgtKey : 문서관리번호
return
문서 이력 목록 as List
raise
PopbillException
def getLogs(self, CorpNum, MgtKey):
""" 문서이력 조회
args
CorpNum : 팝빌회원 사업자번호
... |
공급받는자용 인쇄 URL 확인
args
CorpNum : 팝빌회원 사업자번호
MgtKey : 문서관리번호
UserID : 팝빌회원 아이디
return
팝빌 URL as str
raise
PopbillException
def getEPrintURL(self, CorpNum, MgtKey, UserID=None):
""" 공급받는자용 ... |
알림메일 전송설정 수정
args
CorpNum : 팝빌회원 사업자번호
EmailType: 메일전송유형
SendYN: 전송여부 (True-전송, False-미전송)
UserID : 팝빌회원 아이디
return
처리결과. consist of code and message
raise
PopbillException
def up... |
Returns the list of documents found on the collection
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({... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.