feriennet.views.activity

Attributes

ACTIVITY_STATE_TRANSLATIONS

WEEKDAYS

Functions

get_activity_form_class(...)

occasions_by_period(→ tuple[tuple[str, ...)

filter_link(→ onegov.core.elements.Link)

filter_timelines(→ list[onegov.core.elements.Link])

filter_tags(→ list[onegov.core.elements.Link])

filter_durations(→ tuple[onegov.core.elements.Link, ...)

filter_ages(→ tuple[onegov.core.elements.Link, Ellipsis])

filter_price_range(→ tuple[onegov.core.elements.Link, ...)

filter_weeks(→ tuple[onegov.core.elements.Link, Ellipsis])

filter_weekdays(→ tuple[onegov.core.elements.Link, ...)

filter_available(→ tuple[onegov.core.elements.Link, ...)

filter_municipalities(→ list[onegov.core.elements.Link])

filter_periods(→ list[onegov.core.elements.Link])

filter_own(→ tuple[onegov.core.elements.Link, Ellipsis])

filter_states(→ tuple[onegov.core.elements.Link, Ellipsis])

period_bound_occasions(→ list[onegov.activity.Occasion])

activity_ages(...)

activity_spots(→ int)

activity_min_cost(→ Decimal | None)

activity_max_cost(→ Decimal | None)

is_filtered(→ bool)

adjust_filter_path(→ None)

exclude_filtered_dates(...)

view_activities(→ onegov.core.types.RenderData)

view_activities_as_json(→ onegov.core.types.JSON_ro)

view_activities_for_volunteers(...)

view_activity(→ onegov.core.types.RenderData)

new_activity(→ RenderData | Response)

edit_activity(→ RenderData | Response)

discard_activity(→ None)

propose_activity(→ None)

accept_activity(→ None)

archive_activity(→ None)

offer_activity_again(→ None)

relevant_ticket(→ Ticket | None)

administer_activity(→ None)

Module Contents

feriennet.views.activity.ACTIVITY_STATE_TRANSLATIONS[source]
feriennet.views.activity.WEEKDAYS[source]
feriennet.views.activity.get_activity_form_class(model: onegov.feriennet.models.VacationActivity | onegov.feriennet.collections.VacationActivityCollection, request: onegov.feriennet.request.FeriennetRequest) type[onegov.feriennet.forms.VacationActivityForm][source]
feriennet.views.activity.occasions_by_period(session: sqlalchemy.orm.Session, activity: onegov.activity.Activity, show_inactive: bool, show_archived: bool) tuple[tuple[str, tuple[onegov.activity.Occasion, Ellipsis]], Ellipsis][source]
feriennet.views.activity.filter_timelines(activity: onegov.feriennet.collections.VacationActivityCollection, request: onegov.feriennet.request.FeriennetRequest) list[onegov.core.elements.Link][source]
feriennet.views.activity.filter_tags(activity: onegov.feriennet.collections.VacationActivityCollection, request: onegov.feriennet.request.FeriennetRequest) list[onegov.core.elements.Link][source]
feriennet.views.activity.filter_durations(activity: onegov.feriennet.collections.VacationActivityCollection, request: onegov.feriennet.request.FeriennetRequest) tuple[onegov.core.elements.Link, Ellipsis][source]
feriennet.views.activity.filter_ages(activity: onegov.feriennet.collections.VacationActivityCollection, request: onegov.feriennet.request.FeriennetRequest) tuple[onegov.core.elements.Link, Ellipsis][source]
feriennet.views.activity.filter_price_range(activity: onegov.feriennet.collections.VacationActivityCollection, request: onegov.feriennet.request.FeriennetRequest) tuple[onegov.core.elements.Link, Ellipsis][source]
feriennet.views.activity.filter_weeks(activity: onegov.feriennet.collections.VacationActivityCollection, request: onegov.feriennet.request.FeriennetRequest) tuple[onegov.core.elements.Link, Ellipsis][source]
feriennet.views.activity.filter_weekdays(activity: onegov.feriennet.collections.VacationActivityCollection, request: onegov.feriennet.request.FeriennetRequest) tuple[onegov.core.elements.Link, Ellipsis][source]
feriennet.views.activity.filter_available(activity: onegov.feriennet.collections.VacationActivityCollection, request: onegov.feriennet.request.FeriennetRequest) tuple[onegov.core.elements.Link, Ellipsis][source]
feriennet.views.activity.filter_municipalities(activity: onegov.feriennet.collections.VacationActivityCollection, request: onegov.feriennet.request.FeriennetRequest) list[onegov.core.elements.Link][source]
feriennet.views.activity.filter_periods(activity: onegov.feriennet.collections.VacationActivityCollection, request: onegov.feriennet.request.FeriennetRequest) list[onegov.core.elements.Link][source]
feriennet.views.activity.filter_own(activity: onegov.feriennet.collections.VacationActivityCollection, request: onegov.feriennet.request.FeriennetRequest) tuple[onegov.core.elements.Link, Ellipsis][source]
feriennet.views.activity.filter_states(activity: onegov.feriennet.collections.VacationActivityCollection, request: onegov.feriennet.request.FeriennetRequest) tuple[onegov.core.elements.Link, Ellipsis][source]
feriennet.views.activity.period_bound_occasions(activity: onegov.activity.Activity, request: onegov.feriennet.request.FeriennetRequest) list[onegov.activity.Occasion][source]
feriennet.views.activity.activity_ages(activity: onegov.activity.Activity, request: onegov.feriennet.request.FeriennetRequest) tuple[onegov.activity.types.BoundedIntegerRange, Ellipsis][source]
feriennet.views.activity.activity_spots(activity: onegov.activity.Activity, request: onegov.feriennet.request.FeriennetRequest) int[source]
feriennet.views.activity.activity_min_cost(activity: onegov.activity.Activity, request: onegov.feriennet.request.FeriennetRequest) Decimal | None[source]
feriennet.views.activity.activity_max_cost(activity: onegov.activity.Activity, request: onegov.feriennet.request.FeriennetRequest) Decimal | None[source]
feriennet.views.activity.is_filtered(filters: dict[str, Sequence[Link]]) bool[source]
feriennet.views.activity.adjust_filter_path(filters: dict[str, Sequence[Link]], suffix: str) None[source]
feriennet.views.activity.exclude_filtered_dates(activities: onegov.feriennet.collections.VacationActivityCollection, dates: Iterable[OccasionDate]) list[onegov.activity.models.OccasionDate][source]
feriennet.views.activity.view_activities(self: onegov.feriennet.collections.VacationActivityCollection, request: onegov.feriennet.request.FeriennetRequest) onegov.core.types.RenderData[source]
feriennet.views.activity.view_activities_as_json(self: onegov.feriennet.collections.VacationActivityCollection, request: onegov.feriennet.request.FeriennetRequest) onegov.core.types.JSON_ro[source]
feriennet.views.activity.view_activities_for_volunteers(self: onegov.feriennet.collections.VacationActivityCollection, request: onegov.feriennet.request.FeriennetRequest) onegov.core.types.RenderData[source]
feriennet.views.activity.view_activity(self: onegov.feriennet.models.VacationActivity, request: onegov.feriennet.request.FeriennetRequest) onegov.core.types.RenderData[source]
feriennet.views.activity.new_activity(self: onegov.feriennet.collections.VacationActivityCollection, request: onegov.feriennet.request.FeriennetRequest, form: onegov.feriennet.forms.VacationActivityForm) RenderData | Response[source]
feriennet.views.activity.edit_activity(self: onegov.feriennet.models.VacationActivity, request: onegov.feriennet.request.FeriennetRequest, form: onegov.feriennet.forms.VacationActivityForm) RenderData | Response[source]
feriennet.views.activity.discard_activity(self: onegov.feriennet.models.VacationActivity, request: onegov.feriennet.request.FeriennetRequest) None[source]
feriennet.views.activity.propose_activity(self: onegov.feriennet.models.VacationActivity, request: onegov.feriennet.request.FeriennetRequest) None[source]
feriennet.views.activity.accept_activity(self: onegov.feriennet.models.VacationActivity, request: onegov.feriennet.request.FeriennetRequest) None[source]
feriennet.views.activity.archive_activity(self: onegov.feriennet.models.VacationActivity, request: onegov.feriennet.request.FeriennetRequest) None[source]
feriennet.views.activity.offer_activity_again(self: onegov.feriennet.models.VacationActivity, request: onegov.feriennet.request.FeriennetRequest) None[source]
feriennet.views.activity.relevant_ticket(activity: onegov.feriennet.models.VacationActivity, request: onegov.feriennet.request.FeriennetRequest) Ticket | None[source]
feriennet.views.activity.administer_activity(model: onegov.feriennet.models.VacationActivity, request: onegov.feriennet.request.FeriennetRequest, action: str, template: str, subject: str) None[source]