org.models.ticket
Attributes
Classes
Adds additional methods to the ticket, needed by the organisations |
|
Adds additional methods to the ticket, needed by the organisations |
|
Adds additional methods to the ticket, needed by the organisations |
|
Adds additional methods to the ticket, needed by the organisations |
|
Adds additional methods to the ticket, needed by the organisations |
|
Adds additional methods to the ticket, needed by the organisations |
|
Adds additional methods to the ticket, needed by the organisations |
|
Functions
|
|
|
|
|
|
|
|
|
|
|
Module Contents
- org.models.ticket.submission_base_invoice_items(self: FormSubmissionHandler | DirectoryEntryHandler, request: onegov.core.request.CoreRequest) list[onegov.pay.InvoiceItemMeta][source]
- org.models.ticket.refresh_submission_invoice_items(self: FormSubmissionHandler | DirectoryEntryHandler, request: onegov.core.request.CoreRequest, rounding_base: decimal.Decimal | None) None[source]
- org.models.ticket.change_submission_email(submission: onegov.form.FormSubmission | None, email: str) None[source]
- class org.models.ticket.OrgTicketMixin[source]
Adds additional methods to the ticket, needed by the organisations implementation of it. Strictly limited to things that do not belong into onegov.ticket.
- reference(request: onegov.org.request.OrgRequest) str[source]
Returns the reference which should be used wherever we talk about a ticket, but do not show it (say in an e-mail subject).
This reference should not be changed so it stays consistent.
If you want, you can override the content of the reference group, shown in brackets (see
reference_group()).
- class org.models.ticket.FormSubmissionTicket[source]
Bases:
OrgTicketMixin,onegov.ticket.TicketAdds additional methods to the ticket, needed by the organisations implementation of it. Strictly limited to things that do not belong into onegov.ticket.
- handler: FormSubmissionHandler[source]
- class org.models.ticket.ReservationTicket[source]
Bases:
OrgTicketMixin,onegov.ticket.TicketAdds additional methods to the ticket, needed by the organisations implementation of it. Strictly limited to things that do not belong into onegov.ticket.
- handler: ReservationHandler[source]
- class org.models.ticket.EventSubmissionTicket[source]
Bases:
OrgTicketMixin,onegov.ticket.TicketAdds additional methods to the ticket, needed by the organisations implementation of it. Strictly limited to things that do not belong into onegov.ticket.
- handler: EventSubmissionHandler[source]
- class org.models.ticket.DirectoryEntryTicket[source]
Bases:
OrgTicketMixin,onegov.ticket.TicketAdds additional methods to the ticket, needed by the organisations implementation of it. Strictly limited to things that do not belong into onegov.ticket.
- handler: DirectoryEntryHandler[source]
- class org.models.ticket.ReservationHandler[source]
Bases:
onegov.ticket.Handler- base_invoice_items(request: onegov.core.request.CoreRequest) list[onegov.pay.InvoiceItemMeta][source]
- refresh_invoice_items(request: onegov.core.request.CoreRequest, rounding_base: decimal.Decimal | None) None[source]
- classmethod handle_extra_parameters[T: sqlalchemy.orm.Query[Any]](session: sqlalchemy.orm.Session, query: T, extra_parameters: dict[str, Any]) T[source]
- get_changes(request: onegov.org.request.OrgRequest) dict[DateRange, DateRange | None][source]
Returns a compressed set of changes of reservations.
If a reservation is moved multiple times and then rejected, then this will only contain the rejection (orginal start/end -> None).
If there is a chain of time adjustments, only the orginal and current start/end will be included.
- get_reservation_links(reservation: onegov.reservation.Reservation, request: onegov.org.request.OrgRequest) list[onegov.core.elements.Link][source]
- get_cancellation_links(reservation: onegov.reservation.Reservation, request: onegov.org.request.OrgRequest) list[onegov.core.elements.Link][source]
- class org.models.ticket.ChatTicket[source]
Bases:
OrgTicketMixin,onegov.ticket.TicketAdds additional methods to the ticket, needed by the organisations implementation of it. Strictly limited to things that do not belong into onegov.ticket.
- class org.models.ticket.VolunteerTicket[source]
Bases:
OrgTicketMixin,onegov.ticket.TicketAdds additional methods to the ticket, needed by the organisations implementation of it. Strictly limited to things that do not belong into onegov.ticket.
- handler: VolunteerHandler[source]
- org.models.ticket.apply_ticket_permissions[T: sqlalchemy.orm.Query[Any]](query: T, filtered_handler: str, request: onegov.org.request.OrgRequest | None) T[source]
- org.models.ticket.apply_search_term[T: sqlalchemy.orm.Query[Any]](query: T, term: str | None, request: onegov.org.request.OrgRequest | None) T[source]
- class org.models.ticket.FilteredTicketCollection(session: sqlalchemy.orm.Session, page: int = 0, state: onegov.ticket.collection.ExtendedTicketState = 'open', handler: str = 'ALL', group: str | None = None, owner: str = '*', submitter: str = '*', term: str | None = None, extra_parameters: dict[str, Any] | None = None, request: onegov.org.request.OrgRequest | None = None)[source]
Bases:
onegov.ticket.collection.TicketCollection
- class org.models.ticket.FilteredArchivedTicketCollection(session: sqlalchemy.orm.Session, page: int = 0, state: Literal['archived'] = 'archived', handler: str = 'ALL', group: str | None = None, owner: str = '*', submitter: str = '*', term: str | None = None, extra_parameters: dict[str, Any] | None = None, request: onegov.org.request.OrgRequest | None = None)[source]
Bases:
onegov.ticket.collection.ArchivedTicketCollection