feriennet.app
¶
Module Contents¶
Classes¶
Baseclass for Morepath OneGov applications. |
Functions¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Attributes¶
- feriennet.app.BANNER_TEMPLATE = Multiline-String[source]¶
Show Value
""" <div class="sponsor-banner"> <div class="sponsor-banner-{id}"> <a href="{url}"> <img src="{src}"> <p class="banner-info">{info}</p> </a> <img src="{tracker}" border="0" height="1" width="1" onerror=" this.getAttribute('src').length != 0 && this.parentNode.parentNode.remove() " alt="Advertisement"> </div> </div> """
- class feriennet.app.FeriennetApp[source]¶
Bases:
onegov.org.OrgApp
Baseclass for Morepath OneGov applications.
- es_may_use_private_search(request: onegov.feriennet.request.FeriennetRequest) bool [source]¶
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.
- mail_sponsor(request: onegov.feriennet.request.FeriennetRequest) list[onegov.feriennet.sponsors.Sponsor] [source]¶
- get_sponsors(request: onegov.feriennet.request.FeriennetRequest) list[onegov.feriennet.sponsors.Sponsor] | None [source]¶
- configure_organisation(*, enable_user_registration: bool = True, enable_yubikey: bool = False, disable_password_reset: bool = False, **cfg: Any) None [source]¶
- invoice_schema_config() tuple[str, dict[str, Any] | None] [source]¶
Returns the currently active schema_name and it’s config.
- feriennet.app.get_create_new_organisation_factory() Callable[[FeriennetApp, str], Organisation] [source]¶
- feriennet.app.get_is_complete_userprofile_handler() Callable[[FeriennetRequest, str], bool] [source]¶