fsi.collections.attendee
Classes
Provides collections with pagination, if they implement a few |
Module Contents
- class fsi.collections.attendee.CourseAttendeeCollection(session: sqlalchemy.orm.Session, page: int = 0, exclude_external: bool = False, external_only: bool = False, auth_attendee: onegov.fsi.models.course_attendee.CourseAttendee | None = None, editors_only: bool = False, admins_only: bool = False)[source]
Bases:
onegov.core.collection.GenericCollection[onegov.fsi.models.course_attendee.CourseAttendee],onegov.core.collection.Pagination[onegov.fsi.models.course_attendee.CourseAttendee]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.
- subset() sqlalchemy.orm.Query[onegov.fsi.models.course_attendee.CourseAttendee][source]
Returns an SQLAlchemy query containing all records that should be considered for pagination.