translator_directory.app
Classes
Baseclass for Morepath OneGov applications. |
Functions
|
|
|
|
|
|
|
|
|
|
|
|
|
Module Contents
- class translator_directory.app.TranslatorDirectoryApp[source]
Bases:
onegov.town6.TownApp
Baseclass for Morepath OneGov applications.
- request_class[source]
The class of the Request to create. Must be a subclass of
morepath.Request
.By default the request class is
morepath.Request
- 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]