lino_xl.lib.courses.models

(This module's source code is available here.)

Classes

ActiveCourses(*args, **kw)

Activities(*args, **kw)

AllActivities(*args, **kw)

AllEnrolments(*args, **kw)

ClosedCourses(*args, **kw)

ConfirmAllEnrolments([label])

CourseDetail([main, datasource, hidden_elements])

Courses(*args, **kw)

CoursesByLine(*args, **kw)

CoursesBySlot(*args, **kw)

CoursesByTeacher(*args, **kw)

CoursesByTopic(*args, **kw)

DraftCourses(*args, **kw)

EnrolmentDetail([main, datasource, ...])

Enrolments(*args, **kw)

EnrolmentsByCourse(*args, **kw)

EnrolmentsByOption(*args, **kw)

EnrolmentsByPupil(*args, **kw)

EntriesByTeacher(*args, **kw)

Show calendar entries of activities led by this teacher

InactiveCourses(*args, **kw)

Lines(*args, **kw)

LinesByTopic(*args, **kw)

MyCourses(*args, **kw)

MyCoursesGiven(*args, **kw)

PendingConfirmedEnrolments(*args, **kw)

PendingRequestedEnrolments(*args, **kw)

Slots(*args, **kw)

StatusReport(*args, **kw)

Gives an overview about what's up today .

Topics(*args, **kw)

class lino_xl.lib.courses.models.Course(id, start_date, start_time, end_date, end_time, user, every_unit, every, positions, monday, tuesday, wednesday, thursday, friday, saturday, sunday, max_events, room, max_date, line, teacher, slot, description, remark, state, max_places, name, enrolments_until, description_de, description_fr, description_et, description_nl, description_pt_BR, description_es)

Bases: lino_xl.lib.cal.mixins.Reservation, lino.mixins.duplicable.Duplicable, lino.modlib.printing.mixins.Printable

before_auto_event_save(event)

Set room and start_time/end_time for automatic events.

get_detail_action(ar)

Custom get_detail_action because the detail_layout to use depends on the course's line's course_area.

get_events_user()

The user of generated events is not the course manager (author) but the teacher.

suggest_cal_guests(event)

Look up enrolments of this course and suggest them as guests.

update_cal_from(ar)

Note: if recurrency is weekly or per_weekday, actual start may be later than self.start_date

class lino_xl.lib.courses.models.Enrolment(id, start_date, end_date, user, printed_by, course_area, course, pupil, request_date, state, places, option, remark, confirmation_details)

Bases: lino.modlib.users.mixins.UserAuthored, lino_xl.lib.excerpts.mixins.Certifiable, lino.mixins.periods.DateRange

create_pupil_choice(text)

Called when an unknown pupil name was given. Try to auto-create it.

get_body_template()

Overrides lino.core.model.Model.get_body_template().

get_confirm_veto(ar)

Called from ConfirmEnrolment. If this returns something else than None, then the enrolment won't be confirmed and the return value will be displayed to the user.

class lino_xl.lib.courses.models.Line(id, ref, name, company, contact_person, contact_role, excerpt_title, course_area, topic, description, every_unit, every, event_type, fee, guest_role, options_cat, fees_cat, body_template, description_de, description_fr, description_et, description_nl, description_pt_BR, description_es, name_de, name_fr, name_et, name_nl, name_pt_BR, name_es, excerpt_title_de, excerpt_title_fr, excerpt_title_et, excerpt_title_nl, excerpt_title_pt_BR, excerpt_title_es)

Bases: lino.mixins.ref.Referrable, lino.mixins.duplicable.Duplicable, lino_xl.lib.excerpts.mixins.ExcerptTitle, lino_xl.lib.contacts.mixins.ContactRelated

class lino_xl.lib.courses.models.Slot(id, seqno, start_time, end_time, name)

Bases: lino.mixins.sequenced.Sequenced, lino_xl.lib.courses.models.StartEndTime

class lino_xl.lib.courses.models.Topic(id, name, name_de, name_fr, name_et, name_nl, name_pt_BR, name_es)

Bases: lino.utils.mldbc.mixins.BabelNamed, lino.modlib.printing.mixins.Printable, lino.mixins.duplicable.Duplicable