Register import handlers

This commit is contained in:
Lance Edgar 2021-12-06 20:10:39 -06:00
parent 04d9b573c2
commit 5c57df189f

View file

@ -161,6 +161,15 @@ setup(
'theo = theo.config:TheoConfig', 'theo = theo.config:TheoConfig',
], ],
'rattail.importing': [
# nb. we always register all 3 handlers here, for version
# imports. any which fail to load will simply not appear
# available to the user.
'to_rattail_versions.from_rattail.import.theo_catapult = theo.importing.versions_catapult:FromTheoToTheoVersions',
'to_rattail_versions.from_rattail.import.theo_corepos = theo.importing.versions_corepos:FromTheoToTheoVersions',
'to_rattail_versions.from_rattail.import.theo_locsms = theo.importing.versions_locsms:FromTheoToTheoVersions',
],
'paste.app_factory': [ 'paste.app_factory': [
'main = theo.web.app:main', 'main = theo.web.app:main',
'webapi = theo.web.webapi:main', 'webapi = theo.web.webapi:main',