rattail-demo/rattail_demo/config.py
Lance Edgar 599bf7cc32 Refactor web app to use "simple" menus
for sake of sharing between themes
2018-11-29 01:40:18 -06:00

22 lines
513 B
Python

# -*- coding: utf-8 -*-
"""
Rattail Demo config extension
"""
from __future__ import unicode_literals, absolute_import
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
config.setdefault('rattail.mail', 'emails', 'rattail_demo.emails')
config.setdefault('tailbone', 'menus', 'rattail_demo.web.menus')