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):
|
|
|
|
|
|
|
|
# tell rattail where our stuff lives
|
2020-03-04 19:08:20 -06:00
|
|
|
config.setdefault('rattail', 'model', 'rattail_demo.db.model')
|
2016-12-10 14:16:37 -06:00
|
|
|
config.setdefault('rattail.mail', 'emails', 'rattail_demo.emails')
|
2018-11-29 01:40:18 -06:00
|
|
|
config.setdefault('tailbone', 'menus', 'rattail_demo.web.menus')
|
2020-03-16 20:44:41 -05:00
|
|
|
|
|
|
|
# default import handlers
|
|
|
|
config.setdefault('rattail.importing', 'versions.handler', 'rattail_corepos.importing.versions:FromRattailToRattailVersions')
|