Define default handler for corepos_member
batch type
This commit is contained in:
parent
c8f55bf472
commit
4d49d4235b
|
@ -2,7 +2,7 @@
|
||||||
################################################################################
|
################################################################################
|
||||||
#
|
#
|
||||||
# Rattail -- Retail Software Framework
|
# Rattail -- Retail Software Framework
|
||||||
# Copyright © 2010-2022 Lance Edgar
|
# Copyright © 2010-2023 Lance Edgar
|
||||||
#
|
#
|
||||||
# This file is part of Rattail.
|
# This file is part of Rattail.
|
||||||
#
|
#
|
||||||
|
@ -70,6 +70,10 @@ class RattailCOREPOSExtension(ConfigExtension):
|
||||||
config.core_lane_op_engine = engines.get('default')
|
config.core_lane_op_engine = engines.get('default')
|
||||||
Session.configure(bind=config.core_lane_op_engine)
|
Session.configure(bind=config.core_lane_op_engine)
|
||||||
|
|
||||||
|
##############################
|
||||||
|
# import handlers
|
||||||
|
##############################
|
||||||
|
|
||||||
# rattail corepos-import-square
|
# rattail corepos-import-square
|
||||||
config.setdefault('rattail.importing', 'to_corepos_db_office_trans.from_square_csv.import.default_handler',
|
config.setdefault('rattail.importing', 'to_corepos_db_office_trans.from_square_csv.import.default_handler',
|
||||||
'rattail_corepos.corepos.importing.db.square:FromSquareToCoreTrans')
|
'rattail_corepos.corepos.importing.db.square:FromSquareToCoreTrans')
|
||||||
|
@ -152,6 +156,14 @@ class RattailCOREPOSExtension(ConfigExtension):
|
||||||
config.setdefault('rattail.importing', 'to_corepos_db_office_op.from_csv.import.legacy_setting',
|
config.setdefault('rattail.importing', 'to_corepos_db_office_op.from_csv.import.legacy_setting',
|
||||||
'rattail_corepos.importing, csv.handler')
|
'rattail_corepos.importing, csv.handler')
|
||||||
|
|
||||||
|
##############################
|
||||||
|
# batch handlers
|
||||||
|
##############################
|
||||||
|
|
||||||
|
# corepos_member
|
||||||
|
config.setdefault('rattail.batch', 'corepos_member.handler.default',
|
||||||
|
'rattail_corepos.batch.coremember:CoreMemberBatchHandler')
|
||||||
|
|
||||||
|
|
||||||
def core_office_url(config, require=False, **kwargs):
|
def core_office_url(config, require=False, **kwargs):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue