4288e1ce64
this lets the demo have random extra Store records and the importer will just ignore them
30 lines
1 KiB
Python
30 lines
1 KiB
Python
# -*- coding: utf-8; -*-
|
|
"""
|
|
Rattail Demo config extension
|
|
"""
|
|
|
|
from rattail.config import ConfigExtension
|
|
|
|
|
|
class DemoConfigExtension(ConfigExtension):
|
|
"""
|
|
Rattail Demo config extension
|
|
"""
|
|
key = 'rattail-demo'
|
|
|
|
def configure(self, config):
|
|
|
|
config.setdefault('rattail', 'app_package', 'rattail_demo')
|
|
|
|
# tell rattail where our stuff lives
|
|
config.setdefault('rattail', 'model', 'rattail_demo.db.model')
|
|
config.setdefault('rattail.mail', 'emails', 'rattail_demo.emails')
|
|
config.setdefault('tailbone', 'menus', 'rattail_demo.web.menus')
|
|
|
|
# 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')
|