fsi.collections.subscription
Classes
Provides collections with pagination, if they implement a few |
Module Contents
- class fsi.collections.subscription.SubscriptionsCollection(session: sqlalchemy.orm.Session, attendee_id: uuid.UUID | None = None, course_event_id: uuid.UUID | None = None, external_only: bool = False, auth_attendee: onegov.fsi.models.course_attendee.CourseAttendee | None = None, page: int = 0)[source]
Bases:
onegov.core.collection.GenericCollection[onegov.fsi.models.course_subscription.CourseSubscription],onegov.core.collection.Pagination[onegov.fsi.models.course_subscription.CourseSubscription]Provides collections with pagination, if they implement a few documented properties and methods.
See
onegov.ticket.TicketCollectionfor an example.- __eq__(other: object) bool[source]
Returns True if the current and the other Pagination instance are equal. Used to find the current page in a list of pages.