feriennet.views.period ====================== .. py:module:: feriennet.views.period Functions --------- .. autoapisummary:: feriennet.views.period.view_periods feriennet.views.period.is_date_range feriennet.views.period.new_period feriennet.views.period.edit_period feriennet.views.period.delete_period feriennet.views.period.activate_period feriennet.views.period.deactivate_period feriennet.views.period.archive_period Module Contents --------------- .. py:function:: view_periods(self: onegov.activity.PeriodCollection, request: onegov.feriennet.request.FeriennetRequest) -> onegov.core.types.RenderData .. py:function:: is_date_range(range: tuple[datetime.date | None, datetime.date | None]) -> typing_extensions.TypeIs[tuple[datetime.date, datetime.date]] .. py:function:: new_period(self: onegov.activity.PeriodCollection, request: onegov.feriennet.request.FeriennetRequest, form: onegov.feriennet.forms.PeriodForm) -> onegov.core.types.RenderData | webob.Response .. py:function:: edit_period(self: onegov.activity.Period, request: onegov.feriennet.request.FeriennetRequest, form: onegov.feriennet.forms.PeriodForm) -> onegov.core.types.RenderData | webob.Response .. py:function:: delete_period(self: onegov.activity.Period, request: onegov.feriennet.request.FeriennetRequest) -> None .. py:function:: activate_period(self: onegov.activity.Period, request: onegov.feriennet.request.FeriennetRequest) -> None .. py:function:: deactivate_period(self: onegov.activity.Period, request: onegov.feriennet.request.FeriennetRequest) -> None .. py:function:: archive_period(self: onegov.activity.Period, request: onegov.feriennet.request.FeriennetRequest) -> None