Beispiel #1
0
def setup(config):
    """Setup method which is called on application initialition and
    takes care that many ringo specific things are setup correctly."""

    # Trigger loading the static files of formbar and make them
    # available in global vars.
    # TODO: Move this call into a better place. (ti) <2015-07-28 13:19> 
    get_formbar_css() # -> formbar_css_filenames
    get_formbar_js() # -> formbar_js_filenames

    setup_extensions(config)
    setup_modules(config)
    config.include('ringo.lib.i18n.setup_translation')
    config.include('ringo.lib.sql.db.setup_session_on_request')
    config.include('ringo.lib.renderer.setup_render_globals')
    config.include('ringo.lib.security.setup_ringo_security')
    config.include('ringo.lib.cache.setup_cache')
    config.add_subscriber(preload_modules, NewRequest)
Beispiel #2
0
def setup(config):
    """Setup method which is called on application initialition and
    takes care that many ringo specific things are setup correctly."""

    # Trigger loading the static files of formbar and make them
    # available in global vars.
    # TODO: Move this call into a better place. (ti) <2015-07-28 13:19> 
    get_formbar_css() # -> formbar_css_filenames
    get_formbar_js() # -> formbar_js_filenames
    config.add_subscriber_predicate('ignore_static_urls', IgnoreStaticUrls)

    setup_extensions(config)
    setup_modules(config)
    config.include('ringo.lib.i18n.setup_translation')
    config.include('ringo.lib.sql.db.setup_session_on_request')
    config.include('ringo.lib.renderer.setup_render_globals')
    config.include('ringo.lib.security.setup_ringo_security')
    config.include('ringo.lib.cache.setup_cache')
    config.include('ringo.lib.request.app')
    config.add_subscriber(preload_modules, NewRequest, ignore_static_urls="")
Beispiel #3
0
def test_get_formbar_js():
    from ringo.lib.form import get_formbar_js
    result = get_formbar_js()
    assert isinstance(result, list)
Beispiel #4
0
def test_get_formbar_js():
    from ringo.lib.form import get_formbar_js
    result = get_formbar_js()
    assert isinstance(result, list)