예제 #1
0
def test_get_ui_modules():
    '''
        Test ``modules.get_ui_modules``
    '''
    ui_modules = modules.get_ui_modules(['test'])
예제 #2
0
define(
    "static_path",
    default=STATIC_ROOT,
    help="The path of static files",
    group="application"
)
define(
    "template_path",
    default=TEMPLATE_ROOT,
    help="The path of frontend templates",
    group="application"
)
define(
    "ui_modules",
    default=get_ui_modules(),
    help="The frontend modules",
    group="application"
)
define(
    "login_url",
    default='/login',
    help="Url of login page",
    group="application"
)
define(
    "cookie_secret",
    default=base64.b64encode(uuid.uuid4().bytes + uuid.uuid4().bytes),
    help="Cookie secret",
    group="application"
)
define(
    "static_path",
    default=STATIC_ROOT,
    help="The path of static files",
    group="application"
)
define(
    "template_path",
    default=TEMPLATE_ROOT,
    help="The path of frontend templates",
    group="application"
)
define(
    "ui_modules",
    default=get_ui_modules(),
    help="The frontend modules",
    group="application"
)
define(
    "login_url",
    default='/login',
    help="Url of login page",
    group="application"
)
define(
    "cookie_secret",
    default=base64.b64encode(uuid.uuid4().bytes + uuid.uuid4().bytes),
    help="Cookie secret",
    group="application"
)