translator_directory.app ======================== .. py:module:: translator_directory.app Classes ------- .. autoapisummary:: translator_directory.app.TranslatorDirectoryApp Functions --------- .. autoapisummary:: translator_directory.app.get_template_directory translator_directory.app.get_static_directory translator_directory.app.get_theme translator_directory.app.get_create_new_organisation_factory translator_directory.app.get_i18n_localedirs translator_directory.app.get_js_path translator_directory.app.get_webasset_output translator_directory.app.get_common_asset Module Contents --------------- .. py:class:: TranslatorDirectoryApp Bases: :py:obj:`onegov.town6.TownApp` Baseclass for Morepath OneGov applications. .. py:attribute:: send_ticket_statistics :value: False .. py:attribute:: request_class The class of the Request to create. Must be a subclass of :class:`morepath.Request`. By default the request class is :class:`morepath.Request` .. py:method:: es_may_use_private_search(request: onegov.translator_directory.request.TranslatorAppRequest) -> bool 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. .. py:method:: configure_organisation(*, enable_user_registration: bool = False, enable_yubikey: bool = False, disable_password_reset: bool = False, **cfg: Any) -> None .. py:property:: coordinates :type: onegov.gis.models.coordinates.AnyCoordinates .. py:method:: redirect_after_login(identity: morepath.authentication.Identity | morepath.authentication.NoIdentity, request: onegov.translator_directory.request.TranslatorAppRequest, default: str) -> str | None 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. .. py:property:: mail_templates :type: list[str] Templates are special docx files which are filled with variables. These files are manually uploaded. .. py:property:: mailto_link :type: str .. py:function:: get_template_directory() -> str .. py:function:: get_static_directory() -> str .. py:function:: get_theme() -> onegov.translator_directory.theme.TranslatorDirectoryTheme .. py:function:: get_create_new_organisation_factory() -> collections.abc.Callable[[TranslatorDirectoryApp, str], onegov.org.models.Organisation] .. py:function:: get_i18n_localedirs() -> list[str] .. py:function:: get_js_path() -> str .. py:function:: get_webasset_output() -> str .. py:function:: get_common_asset() -> collections.abc.Iterator[str]