fsi.collections.attendee

Classes

CourseAttendeeCollection

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, uuid.UUID], onegov.core.collection.Pagination[onegov.fsi.models.course_attendee.CourseAttendee]

page = 0[source]
exclude_external = False[source]
external_only = False[source]
auth_attendee = None[source]
editors_only = False[source]
admins_only = False[source]
property unfiltered: bool[source]
property model_class: type[onegov.fsi.models.course_attendee.CourseAttendee][source]
__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.

property attendee_permissions: list[str][source]
query() → sqlalchemy.orm.Query[onegov.fsi.models.course_attendee.CourseAttendee][source]
subset() → sqlalchemy.orm.Query[onegov.fsi.models.course_attendee.CourseAttendee][source]
property page_index: int[source]
page_by_index(index: int) → Self[source]
add_from_user(user: onegov.user.User) → onegov.fsi.models.course_attendee.CourseAttendee[source]
by_id(id: uuid.UUID) → onegov.fsi.models.course_attendee.CourseAttendee | None[source]