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
|
2020-03-04 19:08:20 -06:00
|
|
|
config.setdefault('rattail', 'model', 'rattail_demo.db.model')
|
2021-02-18 20:20:31 -06:00
|
|
|
config.setdefault('rattail.trainwreck', 'model', 'rattail.trainwreck.db.model.defaults')
|
2023-01-14 16:13:58 -06:00
|
|
|
config.setdefault('tailbone.menus', 'handler', 'rattail_demo.web.menus:DemoMenuHandler')
|
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
|
|
|
|
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')
|