feriennet.cli
Attributes
Functions
|
Deletes all the data associated with a period, including: |
Recomputes the durations of all occassions. |
Module Contents
- feriennet.cli.delete_period(title: str) Callable[[FeriennetRequest, FeriennetApp], None] [source]
Deletes all the data associated with a period, including:
Payments
Bookings
Occasions
Publication Requests
Tickets
We usually don’t allow for this, but there tends to be a request here and there about this, where a Ferienpass created a period for testing and tries to return to a semi-clean state.
Example:
onegov-feriennet --select /foo/bar delete-period "Ferienpass Test"
- feriennet.cli.compute_occasion_durations() Callable[[FeriennetRequest, FeriennetApp], None] [source]
Recomputes the durations of all occassions.
Example:
onegov-feriennet --select /foo/bar compute-occasion-durations