feriennet.cli

Module Contents

Functions

delete_period(→ Callable[[FeriennetRequest, ...)

Deletes all the data associated with a period, including:

compute_occasion_durations(...)

Recomputes the durations of all occassions.

Attributes

cli

feriennet.cli.cli[source]
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