translator_directory.app

Classes

TranslatorDirectoryApp

Baseclass for Morepath OneGov applications.

Functions

get_template_directory(→ str)

get_static_directory(→ str)

get_theme(...)

get_create_new_organisation_factory(...)

get_i18n_localedirs(→ list[str])

get_js_path(→ str)

get_webasset_output(→ str)

get_common_asset(→ Iterator[str])

Module Contents

class translator_directory.app.TranslatorDirectoryApp[source]

Bases: onegov.org.OrgApp

Baseclass for Morepath OneGov applications.

send_ticket_statistics = False[source]
request_class[source]

Returns True if the given request is allowed to access private search results. By default every logged in user has access to those.

This method may be overwritten if this is not desired.

configure_organisation(*, enable_user_registration: bool = False, enable_yubikey: bool = False, disable_password_reset: bool = False, **cfg: Any) None[source]
property coordinates: onegov.gis.models.coordinates.AnyCoordinates[source]
redirect_after_login(identity: Identity | NoIdentity, request: onegov.translator_directory.request.TranslatorAppRequest, default: str) str | None[source]

Returns the path to redirect after login, given the request and the default login path, which is usually the current path.

Returns a path or None, if the default should be used.

property mail_templates: list[str][source]

Templates are special docx files which are filled with variables. These files are manually uploaded.

translator_directory.app.get_template_directory() str[source]
translator_directory.app.get_static_directory() str[source]
translator_directory.app.get_theme() onegov.translator_directory.theme.TranslatorDirectoryTheme[source]
translator_directory.app.get_create_new_organisation_factory() Callable[[TranslatorDirectoryApp, str], Organisation][source]
translator_directory.app.get_i18n_localedirs() list[str][source]
translator_directory.app.get_js_path() str[source]
translator_directory.app.get_webasset_output() str[source]
translator_directory.app.get_common_asset() Iterator[str][source]