feriennet.views.booking
Attributes
Classes
Functions
|
Loads all bookings together with the linked occasions, attendees and |
|
Takes a (small) list of bookings and groups them by attendee and state |
|
|
|
|
|
Loads the given attendees linked to the given username, sorted by |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Creates a group_code on the booking, if one doesn't exist already |
|
|
|
|
|
Module Contents
- feriennet.views.booking.all_bookings(collection: onegov.activity.BookingCollection) list[onegov.activity.Booking] [source]
Loads all bookings together with the linked occasions, attendees and activities. This is somewhat of a heavy query, but it beats having to load all these things separately.
- feriennet.views.booking.group_bookings(period: Period | PeriodMeta, bookings: Iterable[Booking]) dict[onegov.activity.Attendee, dict[onegov.activity.models.booking.BookingState, sortedcontainers.SortedList[onegov.activity.Booking]]] [source]
Takes a (small) list of bookings and groups them by attendee and state and sorting them by date.
- feriennet.views.booking.total_by_bookings(period: Period | PeriodMeta | None, bookings: Collection[Booking]) decimal.Decimal [source]
- feriennet.views.booking.attendees_by_username(request: onegov.feriennet.request.FeriennetRequest, username: str) list[onegov.activity.Attendee] [source]
Loads the given attendees linked to the given username, sorted by their name.
- feriennet.views.booking.get_booking_title(layout: onegov.feriennet.layout.DefaultLayout, booking: onegov.activity.Booking) str [source]
- feriennet.views.booking.actions_by_booking(layout: onegov.feriennet.layout.DefaultLayout, period: Period | PeriodMeta | None, booking: onegov.activity.Booking) list[onegov.core.elements.Link] [source]
- feriennet.views.booking.show_error_on_attendee(request: onegov.feriennet.request.FeriennetRequest, attendee: onegov.activity.Attendee, message: str) None [source]
- feriennet.views.booking.view_my_bookings(self: onegov.activity.BookingCollection, request: onegov.feriennet.request.FeriennetRequest) onegov.core.types.RenderData [source]
- feriennet.views.booking.delete_booking(self: onegov.activity.Booking, request: onegov.feriennet.request.FeriennetRequest) None [source]
- feriennet.views.booking.cancel_booking(self: onegov.activity.Booking, request: onegov.feriennet.request.FeriennetRequest) None [source]
- feriennet.views.booking.toggle_star(self: onegov.activity.Booking, request: onegov.feriennet.request.FeriennetRequest) str [source]
- feriennet.views.booking.toggle_nobble(self: onegov.activity.Booking, request: onegov.feriennet.request.FeriennetRequest) str [source]
- feriennet.views.booking.render_css(content: str, request: onegov.feriennet.request.FeriennetRequest) morepath.Response [source]
- feriennet.views.booking.view_mask(self: onegov.activity.BookingCollection, request: onegov.feriennet.request.FeriennetRequest) str [source]
- feriennet.views.booking.create_invite(self: onegov.activity.Booking, request: onegov.feriennet.request.FeriennetRequest) webob.Response [source]
Creates a group_code on the booking, if one doesn’t exist already and redirects to the GroupInvite view.
- feriennet.views.booking.view_group_invite(self: onegov.feriennet.models.GroupInvite, request: onegov.feriennet.request.FeriennetRequest) onegov.core.types.RenderData [source]