feriennet.models.volunteer_cart
Classes
Stores items of the volunteer cart view in the browser session. |
|
Represents a single action for the VolunteerCart. |
Module Contents
- class feriennet.models.volunteer_cart.VolunteerCart(session: sqlalchemy.orm.Session, browser_session: onegov.core.browser_session.BrowserSession)[source]
Stores items of the volunteer cart view in the browser session.
Items stored this way may not overlap with existing items. We want to prevent volunteers from signing up for conflicting items.
- card_items(need_id: UUID | None = None) Query[CardItemRow] [source]
- class feriennet.models.volunteer_cart.VolunteerCartAction(action: Literal['add', 'remove'], target: uuid.UUID)[source]
Represents a single action for the VolunteerCart.
- execute(request: onegov.feriennet.request.FeriennetRequest, cart: VolunteerCart) onegov.core.types.JSON_ro [source]