示例#1
0
from ferris.core import events, plugins

plugins.register('settings')


from .models.setting import Setting as SettingModel


@events.on('build_settings')
def on_build_settings(settings):
    overrides = SettingModel.get_settings()
    settings.update(overrides)
示例#2
0
from ferris.core.plugins import register

register('recaptcha')
示例#3
0
from ferris.core.plugins import register

register('oauth_manager')
示例#4
0
from ferris.core.plugins import register

register("template_tester")
示例#5
0
from ferris.core.plugins import register

register('template_tester')
示例#6
0
from ferris.core.plugins import register

register('csrf')
示例#7
0
from ferris.core.plugins import register

register('custom_auth')
示例#8
0
from ferris.core import events, plugins

plugins.register('settings')

from .models.setting import Setting as SettingModel


@events.on('build_settings')
def on_build_settings(settings):
    overrides = SettingModel.get_settings()
    settings.update(overrides)
示例#9
0
from ferris.core.plugins import register

register('tiny_mce')