wtfs.app

Classes

WtfsApp

The Wtfs application. Include this in your onegov.yml to serve

Functions

get_static_directory(→ str)

get_template_directory(→ str)

get_theme(→ onegov.wtfs.theme.WtfsTheme)

get_i18n_localedirs(→ list[str])

get_i18n_used_locales(→ set[str])

get_i18n_default_locale(→ str)

get_shared_assets_path(→ str)

get_js_path(→ str)

get_css_path(→ str)

get_webasset_output(→ str)

get_frameworks_asset(→ Iterator[str])

get_common_asset(→ Iterator[str])

Module Contents

class wtfs.app.WtfsApp[source]

Bases: onegov.core.Framework, onegov.form.FormApp, onegov.file.DepotApp, onegov.user.UserApp

The Wtfs application. Include this in your onegov.yml to serve it with onegov-server.

serve_static_files = True[source]

Returns True if /static files should be served. Needs to be enabled manually.

Note that even if the static files are not served, /static path is still served, it just won’t return anything but a 404.

Note also that static files are served publicly. You can override this in your application, but doing that and testing for it is on you!

See also: onegov.core.static.

property principal: onegov.wtfs.models.Principal[source]
add_initial_content() None[source]
wtfs.app.get_static_directory() str[source]
wtfs.app.get_template_directory() str[source]
wtfs.app.get_theme() onegov.wtfs.theme.WtfsTheme[source]
wtfs.app.get_i18n_localedirs() list[str][source]
wtfs.app.get_i18n_used_locales() set[str][source]
wtfs.app.get_i18n_default_locale() str[source]
wtfs.app.get_shared_assets_path() str[source]
wtfs.app.get_js_path() str[source]
wtfs.app.get_css_path() str[source]
wtfs.app.get_webasset_output() str[source]
wtfs.app.get_frameworks_asset() Iterator[str][source]
wtfs.app.get_common_asset() Iterator[str][source]