town6.app ========= .. py:module:: town6.app Classes ------- .. autoapisummary:: town6.app.TownApp Functions --------- .. autoapisummary:: town6.app.get_shared_assets_path town6.app.get_static_directory town6.app.get_template_directory town6.app.get_template_variables town6.app.get_theme town6.app.get_i18n_used_locales town6.app.get_i18n_localedirs town6.app.get_i18n_default_locale town6.app.get_locale_negotiator town6.app.get_create_new_organisation_factory town6.app.get_status_mail_roles town6.app.get_ticket_manager_roles town6.app.get_require_complete_userprofile town6.app.get_is_complete_userprofile_handler town6.app.get_default_directory_search_widget town6.app.get_default_event_search_widget town6.app.get_public_ticket_messages town6.app.get_disabled_extensions town6.app.get_api_endpoints town6.app.get_js_path town6.app.get_css_path town6.app.get_webasset_output town6.app.get_common_asset town6.app.get_editor_asset town6.app.get_fullcalendar_asset town6.app.get_staff_chat_asset town6.app.get_staff_client_asset Module Contents --------------- .. py:class:: TownApp Bases: :py:obj:`onegov.org.app.OrgApp`, :py:obj:`onegov.foundation6.integration.FoundationApp`, :py:obj:`onegov.api.ApiApp` Baseclass for Morepath OneGov applications. .. py:method:: configure_organisation(*, enable_user_registration: bool = False, enable_yubikey: bool = True, disable_password_reset: bool = False, **cfg: Any) -> None .. py:property:: font_family :type: str | None .. py:method:: chat_open(request: onegov.town6.request.TownRequest) -> bool .. py:function:: get_shared_assets_path() -> str .. py:function:: get_static_directory() -> str .. py:function:: get_template_directory() -> str .. py:function:: get_template_variables(request: onegov.town6.request.TownRequest) -> onegov.core.types.RenderData .. py:function:: get_theme() -> onegov.town6.theme.TownTheme .. py:function:: get_i18n_used_locales() -> set[str] .. py:function:: get_i18n_localedirs() -> list[str] .. py:function:: get_i18n_default_locale() -> str .. py:function:: get_locale_negotiator() -> collections.abc.Callable[[collections.abc.Sequence[str], onegov.town6.request.TownRequest], str | None] .. py:function:: get_create_new_organisation_factory() -> collections.abc.Callable[[TownApp, str], onegov.org.models.Organisation] .. py:function:: get_status_mail_roles() -> tuple[str, Ellipsis] .. py:function:: get_ticket_manager_roles() -> tuple[str, Ellipsis] .. py:function:: get_require_complete_userprofile() -> bool .. py:function:: get_is_complete_userprofile_handler() -> collections.abc.Callable[[onegov.town6.request.TownRequest, str], bool] .. py:function:: get_default_directory_search_widget() -> None .. py:function:: get_default_event_search_widget() -> None .. py:function:: get_public_ticket_messages() -> tuple[str, Ellipsis] Returns a list of message types which are availble on the ticket status page, visible to anyone that knows the unguessable url. .. py:function:: get_disabled_extensions() -> tuple[str, Ellipsis] .. py:function:: get_api_endpoints() -> list[type[onegov.api.ApiEndpoint[Any]]] .. py:function:: get_js_path() -> str .. py:function:: get_css_path() -> str .. py:function:: get_webasset_output() -> str .. py:function:: get_common_asset() -> collections.abc.Iterator[str] .. py:function:: get_editor_asset() -> collections.abc.Iterator[str] .. py:function:: get_fullcalendar_asset() -> collections.abc.Iterator[str] .. py:function:: get_staff_chat_asset() -> collections.abc.Iterator[str] .. py:function:: get_staff_client_asset() -> collections.abc.Iterator[str]