town6.app

Classes

TownApp

Baseclass for Morepath OneGov applications.

Functions

get_shared_assets_path(→ str)

get_static_directory(→ str)

get_template_directory(→ str)

get_template_variables(→ onegov.core.types.RenderData)

get_theme(→ onegov.town6.theme.TownTheme)

get_i18n_used_locales(→ set[str])

get_i18n_localedirs(→ list[str])

get_i18n_default_locale(→ str)

get_locale_negotiator(→ Callable[[Sequence[str], ...)

get_create_new_organisation_factory(...)

get_status_mail_roles(→ tuple[str, Ellipsis])

get_ticket_manager_roles(→ tuple[str, Ellipsis])

get_require_complete_userprofile(→ bool)

get_is_complete_userprofile_handler(...)

get_default_directory_search_widget(→ None)

get_default_event_search_widget(→ None)

get_public_ticket_messages(→ tuple[str, Ellipsis])

Returns a list of message types which are availble on the ticket

get_js_path(→ str)

get_css_path(→ str)

get_webasset_output(→ str)

get_common_asset(→ Iterator[str])

get_editor_asset(→ Iterator[str])

get_fullcalendar_asset(→ Iterator[str])

get_staff_chat_asset(→ Iterator[str])

get_staff_client_asset(→ Iterator[str])

Module Contents

class town6.app.TownApp[source]

Bases: onegov.org.app.OrgApp, onegov.foundation6.integration.FoundationApp

Baseclass for Morepath OneGov applications.

configure_organisation(*, enable_user_registration: bool = False, enable_yubikey: bool = True, disable_password_reset: bool = False, **cfg: Any) None[source]
property font_family: str | None[source]
chat_open(request: onegov.town6.request.TownRequest) bool[source]
town6.app.get_shared_assets_path() str[source]
town6.app.get_static_directory() str[source]
town6.app.get_template_directory() str[source]
town6.app.get_template_variables(request: onegov.town6.request.TownRequest) onegov.core.types.RenderData[source]
town6.app.get_theme() onegov.town6.theme.TownTheme[source]
town6.app.get_i18n_used_locales() set[str][source]
town6.app.get_i18n_localedirs() list[str][source]
town6.app.get_i18n_default_locale() str[source]
town6.app.get_locale_negotiator() Callable[[Sequence[str], TownRequest], str | None][source]
town6.app.get_create_new_organisation_factory() Callable[[TownApp, str], Organisation][source]
town6.app.get_status_mail_roles() tuple[str, Ellipsis][source]
town6.app.get_ticket_manager_roles() tuple[str, Ellipsis][source]
town6.app.get_require_complete_userprofile() bool[source]
town6.app.get_is_complete_userprofile_handler() Callable[[TownRequest, str], bool][source]
town6.app.get_default_directory_search_widget() None[source]
town6.app.get_default_event_search_widget() None[source]
town6.app.get_public_ticket_messages() tuple[str, Ellipsis][source]

Returns a list of message types which are availble on the ticket status page, visible to anyone that knows the unguessable url.

town6.app.get_js_path() str[source]
town6.app.get_css_path() str[source]
town6.app.get_webasset_output() str[source]
town6.app.get_common_asset() Iterator[str][source]
town6.app.get_editor_asset() Iterator[str][source]
town6.app.get_fullcalendar_asset() Iterator[str][source]
town6.app.get_staff_chat_asset() Iterator[str][source]
town6.app.get_staff_client_asset() Iterator[str][source]