translator_directory.app
¶
Module Contents¶
Classes¶
Baseclass for Morepath OneGov applications. |
Functions¶
|
|
|
|
|
|
|
|
|
|
|
|
|
- class translator_directory.app.TranslatorDirectoryApp[source]¶
Bases:
onegov.org.OrgApp
Baseclass for Morepath OneGov applications.
- property mail_templates: list[str][source]¶
Templates are special docx files which are filled with variables. These files are manually uploaded.
- es_may_use_private_search(request: onegov.translator_directory.request.TranslatorAppRequest) bool [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]¶
- 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.
- translator_directory.app.get_theme() onegov.translator_directory.theme.TranslatorDirectoryTheme [source]¶
- translator_directory.app.get_create_new_organisation_factory() Callable[[TranslatorDirectoryApp, str], Organisation] [source]¶