feriennet.views.period

Functions

view_periods(→ onegov.core.types.RenderData)

is_date_range(→ TypeIs[tuple[date, date]])

new_period(→ RenderData | Response)

edit_period(→ RenderData | Response)

delete_period(→ None)

activate_period(→ None)

deactivate_period(→ None)

archive_period(→ None)

Module Contents

feriennet.views.period.view_periods(self: onegov.activity.PeriodCollection, request: onegov.feriennet.request.FeriennetRequest) onegov.core.types.RenderData[source]
feriennet.views.period.is_date_range(range: tuple[datetime.date | None, datetime.date | None]) TypeIs[tuple[date, date]][source]
feriennet.views.period.new_period(self: onegov.activity.PeriodCollection, request: onegov.feriennet.request.FeriennetRequest, form: onegov.feriennet.forms.PeriodForm) RenderData | Response[source]
feriennet.views.period.edit_period(self: onegov.activity.Period, request: onegov.feriennet.request.FeriennetRequest, form: onegov.feriennet.forms.PeriodForm) RenderData | Response[source]
feriennet.views.period.delete_period(self: onegov.activity.Period, request: onegov.feriennet.request.FeriennetRequest) None[source]
feriennet.views.period.activate_period(self: onegov.activity.Period, request: onegov.feriennet.request.FeriennetRequest) None[source]
feriennet.views.period.deactivate_period(self: onegov.activity.Period, request: onegov.feriennet.request.FeriennetRequest) None[source]
feriennet.views.period.archive_period(self: onegov.activity.Period, request: onegov.feriennet.request.FeriennetRequest) None[source]