pas.app

Classes

PasApp

Baseclass for Morepath OneGov applications.

Functions

get_create_new_organisation_factory(...)

get_citizen_login_enabled(→ bool)

get_template_variables(→ onegov.core.types.RenderData)

get_static_directory(→ str)

get_template_directory(→ str)

get_js_path(→ str)

get_custom_webasset(→ collections.abc.Iterator[str])

get_logfilter_webasset(→ collections.abc.Iterator[str])

get_i18n_localedirs(→ list[str])

get_theme(→ onegov.pas.theme.PasTheme)

Module Contents

class pas.app.PasApp[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

configure_kub_api(*, kub_test_api_token: str = '', kub_test_base_url: str = '', kub_api_token: str = '', kub_base_url: str = '', **cfg: Any) None[source]

Configure KUB API settings for data import.

redirect_after_login(identity: morepath.authentication.Identity | morepath.authentication.NoIdentity, request: onegov.pas.request.PasRequest, 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.

pas.app.get_create_new_organisation_factory() collections.abc.Callable[[onegov.town6.TownApp, str], onegov.org.models.Organisation][source]
pas.app.get_citizen_login_enabled() bool[source]
pas.app.get_template_variables(request: onegov.pas.request.PasRequest) onegov.core.types.RenderData[source]
pas.app.get_static_directory() str[source]
pas.app.get_template_directory() str[source]
pas.app.get_js_path() str[source]
pas.app.get_custom_webasset() collections.abc.Iterator[str][source]
pas.app.get_logfilter_webasset() collections.abc.Iterator[str][source]
pas.app.get_i18n_localedirs() list[str][source]
pas.app.get_theme() onegov.pas.theme.PasTheme[source]