def register_setting(self, section_name, setting_name, func):
        section = getattr(self, section_name, None)
        if section is None:
            section = SettingSection()
            setattr(self, section_name, section)
        setattr(section, setting_name, func())
Register a setting.
dataset/ETHPy150Open morepath/morepath/morepath/settings.py/SettingRegistry.register_setting