wutta_corepos.handler
¶
CORE-POS Integration Handler
- class wutta_corepos.handler.CoreposHandler(config)[source]¶
Base class and default implementation for the CORE-POS integration handler.
- get_model_office_arch()[source]¶
Returns the data model module for CORE Office ‘arch’ DB, i.e.
pycorepos:corepos.db.office_arch.model
.
- get_model_office_op()[source]¶
Returns the data model module for CORE Office ‘op’ DB, i.e.
pycorepos:corepos.db.office_op.model
.
- get_model_office_trans()[source]¶
Returns the data model module for CORE Office ‘trans’ DB, i.e.
pycorepos:corepos.db.office_trans.model
.
- get_office_department_url(dept_id, office_url=None, require=False)[source]¶
Returns the CORE Office URL for a Department.
- Parameters:
dept_id – Department ID for the URL.
office_url – Root URL from
get_office_url()
.require – If true, an error is raised when URL cannot be determined.
- Returns:
URL as string.
- get_office_likecode_url(likecode_id, office_url=None, require=False)[source]¶
Returns the CORE Office URL for a Like Code.
- Parameters:
likecode_id – Like Code ID for the URL.
office_url – Root URL from
get_office_url()
.require – If true, an error is raised when URL cannot be determined.
- Returns:
URL as string.
- get_office_product_url(upc, office_url=None, require=False)[source]¶
Returns the CORE Office URL for a Product.
- Parameters:
upc – UPC for the URL.
office_url – Root URL from
get_office_url()
.require – If true, an error is raised when URL cannot be determined.
- Returns:
URL as string.
- get_office_url(require=False)[source]¶
Returns the base URL for the CORE Office web app.
Note that the return value is stripped of final slash.
- Parameters:
require – If true, an error is raised when URL cannot be determined.
- Returns:
URL as string.
- get_office_vendor_url(vend_id, office_url=None, require=False)[source]¶
Returns the CORE Office URL for a Vendor.
- Parameters:
vend_id – Vendor ID for the URL.
office_url – Root URL from
get_office_url()
.require – If true, an error is raised when URL cannot be determined.
- Returns:
URL as string.
- make_session_office_arch(dbkey='default', **kwargs)[source]¶
Make a new db session for the CORE Office ‘arch’ DB.
- Returns:
Instance of
pycorepos:corepos.db.office_arch.Session
.
- make_session_office_op(dbkey='default', **kwargs)[source]¶
Make a new db session for the CORE Office ‘op’ DB.
- Returns:
Instance of
pycorepos:corepos.db.office_op.Session
.
- make_session_office_trans(dbkey='default', **kwargs)[source]¶
Make a new db session for the CORE Office ‘trans’ DB.
- Returns:
Instance of
pycorepos:corepos.db.office_trans.Session
.