2020-03-04 19:08:20 -06:00
|
|
|
# -*- coding: utf-8; -*-
|
2016-12-10 14:16:37 -06:00
|
|
|
"""
|
|
|
|
Rattail Demo config extension
|
|
|
|
"""
|
|
|
|
|
|
|
|
from rattail.config import ConfigExtension
|
|
|
|
|
|
|
|
|
|
|
|
class DemoConfigExtension(ConfigExtension):
|
|
|
|
"""
|
|
|
|
Rattail Demo config extension
|
|
|
|
"""
|
|
|
|
key = 'rattail-demo'
|
|
|
|
|
|
|
|
def configure(self, config):
|
|
|
|
|
2021-01-20 21:54:52 -06:00
|
|
|
config.setdefault('rattail', 'app_package', 'rattail_demo')
|
|
|
|
|
2016-12-10 14:16:37 -06:00
|
|
|
# tell rattail where our stuff lives
|
2024-07-13 09:36:40 -05:00
|
|
|
config.setdefault('rattail', 'model_spec', 'rattail_demo.db.model')
|
2021-02-18 20:20:31 -06:00
|
|
|
config.setdefault('rattail.trainwreck', 'model', 'rattail.trainwreck.db.model.defaults')
|
2024-06-30 11:59:45 -05:00
|
|
|
config.setdefault('tailbone.static_libcache.module', 'rattail_demo.web.static')
|
2020-03-16 20:44:41 -05:00
|
|
|
|
2024-07-14 11:37:36 -05:00
|
|
|
# menus
|
|
|
|
config.setdefault('rattail.web.menus.handler_spec', 'rattail_demo.web.menus:DemoMenuHandler')
|
|
|
|
|
2021-01-21 17:42:06 -06:00
|
|
|
# default app handlers
|
|
|
|
config.setdefault('rattail', 'products.handler', 'rattail_corepos.products:CoreProductsHandler')
|
|
|
|
|
2020-03-16 20:44:41 -05:00
|
|
|
# default import handlers
|
2020-08-19 22:21:00 -05:00
|
|
|
config.setdefault('rattail.importing', 'versions.handler', 'rattail_demo.importing.versions:FromRattailDemoToRattailDemoVersions')
|
2021-01-28 13:29:22 -06:00
|
|
|
config.setdefault('rattail.importing', 'corepos_api.handler', 'rattail_demo.importing.corepos_api:FromCOREPOSToRattail')
|