Define default handler for corepos_member batch type

This commit is contained in:
Lance Edgar 2023-01-03 18:11:24 -06:00
parent c8f55bf472
commit 4d49d4235b

View file

@ -2,7 +2,7 @@
################################################################################
#
# Rattail -- Retail Software Framework
# Copyright © 2010-2022 Lance Edgar
# Copyright © 2010-2023 Lance Edgar
#
# This file is part of Rattail.
#
@ -70,6 +70,10 @@ class RattailCOREPOSExtension(ConfigExtension):
config.core_lane_op_engine = engines.get('default')
Session.configure(bind=config.core_lane_op_engine)
##############################
# import handlers
##############################
# rattail corepos-import-square
config.setdefault('rattail.importing', 'to_corepos_db_office_trans.from_square_csv.import.default_handler',
'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',
'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):
"""