# -*- coding: utf-8; mode: python; -*-
"""
Custom config
"""

from rattail.config import ConfigExtension


class ${studly_name}Config(ConfigExtension):
    """
    Rattail config extension for ${name}
    """
    key = '${python_name}'

    def configure(self, config):

        # set some default config values
        config.setdefault('rattail.mail', 'emails', '${python_name}.emails')
        config.setdefault('rattail', 'settings', '${python_name}.settings')
        config.setdefault('tailbone', 'menus', '${python_name}.web.menus')
        config.setdefault('rattail.config', 'templates', '${python_name}:data/config rattail:data/config')

        ## do we integrate w/ Catapult?
        % if integrates_catapult:
        config.setdefault('rattail', 'model', '${python_name}.db.model')
        config.setdefault('rattail.importing', 'versions.handler', 'rattail_onager.importing.versions:FromRattailToRattailVersions')
        % endif
