rattail-demo/rattail_demo/config.py

33 lines
1.2 KiB
Python
Raw Normal View History

# -*- coding: utf-8; -*-
2016-12-10 14:16:37 -06:00
"""
Rattail Demo config extension
"""
from wuttjamaican.conf import WuttaConfigExtension
2016-12-10 14:16:37 -06:00
class DemoConfigExtension(WuttaConfigExtension):
2016-12-10 14:16:37 -06:00
"""
Rattail Demo config extension
"""
key = 'rattail-demo'
def configure(self, config):
config.setdefault('rattail', 'app_package', 'rattail_demo')
2016-12-10 14:16:37 -06:00
# tell rattail where our stuff lives
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')
config.setdefault('tailbone.static_libcache.module', 'rattail_demo.web.static')
2024-07-14 11:37:36 -05:00
# menus
config.setdefault('rattail.web.menus.handler_spec', 'rattail_demo.web.menus:DemoMenuHandler')
# default app handlers
config.setdefault('rattail', 'products.handler', 'rattail_corepos.products:CoreProductsHandler')
# default import handlers
config.setdefault('rattail.importing', 'versions.handler', 'rattail_demo.importing.versions:FromRattailDemoToRattailDemoVersions')
config.setdefault('rattail.importing', 'corepos_api.handler', 'rattail_demo.importing.corepos_api:FromCOREPOSToRattail')