fix: update config for default app model
per rattail changes
This commit is contained in:
parent
e5125b153b
commit
a13747582a
|
@ -46,7 +46,7 @@ class TheoConfig(ConfigExtension):
|
|||
|
||||
# do we integrate w/ CORE-POS?
|
||||
if integrate_corepos(config):
|
||||
config.setdefault('rattail', 'model', 'theo.db.model_corepos')
|
||||
config.setdefault('rattail', 'model_spec', 'theo.db.model_corepos')
|
||||
config.setdefault('rattail', 'settings', 'theo.appsettings.theo')
|
||||
config.setdefault('rattail', 'products.handler', 'rattail_corepos.products:CoreProductsHandler')
|
||||
config.setdefault('rattail.batch', 'vendor_catalog.handler.spec', 'rattail_corepos.batch.vendorcatalog:VendorCatalogHandler')
|
||||
|
@ -55,13 +55,13 @@ class TheoConfig(ConfigExtension):
|
|||
|
||||
# do we integrate w/ Catapult?
|
||||
elif integrate_catapult(config):
|
||||
config.setdefault('rattail', 'model', 'theo.db.model_catapult')
|
||||
config.setdefault('rattail', 'model_spec', 'theo.db.model_catapult')
|
||||
config.setdefault('rattail', 'settings', 'theo.appsettings.theo, theo.appsettings.catapult')
|
||||
config.setdefault('rattail.importing', 'versions.handler', 'theo.importing.versions_catapult:FromTheoToTheoVersions')
|
||||
|
||||
# do we integrate w/ LOC SMS?
|
||||
elif integrate_locsms(config):
|
||||
config.setdefault('rattail', 'model', 'theo.db.model_locsms')
|
||||
config.setdefault('rattail', 'model_spec', 'theo.db.model_locsms')
|
||||
config.setdefault('rattail', 'settings', 'theo.appsettings.theo')
|
||||
config.setdefault('rattail.importing', 'versions.handler', 'theo.importing.versions_locsms:FromTheoToTheoVersions')
|
||||
|
||||
|
|
Loading…
Reference in a new issue