rattail-demo/rattail_demo/config.py
2021-01-20 21:54:52 -06:00

26 lines
770 B
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 import handlers
config.setdefault('rattail.importing', 'versions.handler', 'rattail_demo.importing.versions:FromRattailDemoToRattailDemoVersions')