fsi.models.course_attendee
¶
Module Contents¶
Classes¶
Comprises the user base mirrored by one-to-one relationship with |
Attributes¶
- class fsi.models.course_attendee.CourseAttendee[source]¶
Bases:
onegov.core.orm.Base
,onegov.search.ORMSearchable
Comprises the user base mirrored by one-to-one relationship with onegov.user.User which is linked to the LDAP System including external users, that are created by an admin role.
The onegov.user.User model should only contain email and role and is only used for authentication and permissions.
All other attributes should be stored in here.
Entries - external attendees: the do not have a link to a user - CourseAttendees linked to an admin role, aka Kursverantwortlicher - CourseAttendess linked to a member role, aka Kursbesucher
- property course_events: Query[CourseEvent][source]¶
- Will return the query for not completed (future) courses events
the attendee has a subscription record.
- property confirmed_course_events: Query[CourseEvent][source]¶
Registered future course events which have been confirmed
- property total_done_course_events: Query[CourseSubscription][source]¶
- property repeating_courses: Query[CourseEvent][source]¶
Will return query to filter for all upcoming courses the attendee has to refresh.
- This is necessary to answer:
- if one course, how many course events has an attendee:
not registered if he had to
Or from the perspective of a course_event, was there a succeeding course event in the range of the refresh interval?
- property undone_registered_courses: Query[CourseEvent][source]¶
- subscriptions: relationship[AppenderQuery[CourseSubscription]][source]¶
- possible_course_events(show_hidden: bool = True, show_locked: bool = False) Query[CourseEvent] [source]¶
Used for the subscription form. Should exclude past courses and courses already registered