pas.app
Classes
Baseclass for Morepath OneGov applications. |
Functions
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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]