feriennet.app

Attributes

BANNER_TEMPLATE

Classes

FeriennetApp

Baseclass for Morepath OneGov applications.

Functions

get_template_directory(→ str)

get_create_new_organisation_factory(...)

get_status_mail_roles(→ Sequence[str])

get_ticket_manager_roles(→ Sequence[str])

get_public_ticket_messages(→ Sequence[str])

get_require_complete_userprofile(→ bool)

get_is_complete_userprofile_handler(...)

get_i18n_localedirs(→ list[str])

get_theme(→ onegov.feriennet.theme.FeriennetTheme)

get_static_directory(→ str)

get_js_path(→ str)

get_volunteer_cart(→ Iterator[str])

get_common_asset(→ Iterator[str])

Module Contents

feriennet.app.BANNER_TEMPLATE[source]
class feriennet.app.FeriennetApp[source]

Bases: onegov.org.OrgApp

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

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.

active_period() onegov.activity.PeriodMeta | None[source]
periods() tuple[onegov.activity.PeriodMeta, Ellipsis][source]
periods_by_id() dict[str, onegov.activity.PeriodMeta][source]
user_titles_by_name() dict[str, str][source]
user_ids_by_name() dict[str | None, uuid.UUID][source]
property sponsors: list[onegov.feriennet.sponsors.Sponsor][source]
mail_sponsor(request: onegov.feriennet.request.FeriennetRequest) list[onegov.feriennet.sponsors.Sponsor][source]
property default_period: onegov.activity.PeriodMeta | None[source]
property public_organiser_data: Sequence[str][source]
get_sponsors(request: onegov.feriennet.request.FeriennetRequest) list[onegov.feriennet.sponsors.Sponsor] | None[source]
banners(request: onegov.feriennet.request.FeriennetRequest) list[markupsafe.Markup][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.

invoice_collection(period_id: UUID | None = None, user_id: UUID | None = None) onegov.activity.InvoiceCollection[source]

Returns the invoice collection guaranteed to be configured according to the organisation’s settings.

invoice_bucket() str[source]

Returns the active invoice reference bucket.

property show_donate: bool[source]
property donation_amounts: Sequence[int][source]
show_volunteers(request: onegov.feriennet.request.FeriennetRequest) bool[source]
feriennet.app.get_template_directory() str[source]
feriennet.app.get_create_new_organisation_factory() Callable[[FeriennetApp, str], Organisation][source]
feriennet.app.get_status_mail_roles() Sequence[str][source]
feriennet.app.get_ticket_manager_roles() Sequence[str][source]
feriennet.app.get_public_ticket_messages() Sequence[str][source]
feriennet.app.get_require_complete_userprofile() bool[source]
feriennet.app.get_is_complete_userprofile_handler() Callable[[FeriennetRequest, str], bool][source]
feriennet.app.get_i18n_localedirs() list[str][source]
feriennet.app.get_theme() onegov.feriennet.theme.FeriennetTheme[source]
feriennet.app.get_static_directory() str[source]
feriennet.app.get_js_path() str[source]
feriennet.app.get_volunteer_cart() Iterator[str][source]
feriennet.app.get_common_asset() Iterator[str][source]