courses (Activities)¶
A tested document¶
This is a tested document. The following instructions are used for initialization:
>>> from lino_patrols.projects.patrols1.startup import *
- class lino_patrols.lib.courses.Course¶
- num_guests¶
The number of expected participants for each operation.
When you change this number, you must run the data checker on this course to get your changes taken into account.
>>> show_fields(courses.Course)
- Start date (start_date) : The start date of the first meeting to be generated.
- End Date (end_date) : The end date of the first meeting to be generated. Leave this field empty if the meetings last less than one day.
- Recurrence (every_unit) : The interval between each periodic iteration.
- Repeat every (every) : The frequency of periodic iteration: daily, weekly, monthly or yearly.
- Positions (positions) : Space-separated list of one or several positions within the recurrency cycle.
- Number of events (max_events) : Maximum number of calendar entries to generate.
- Author (user) : The author of this database object.
- Generate events until (max_date) : Don’t generate meeting having their start date beyond this date.
- State (state) : The workflow state field.
- Available places (max_places) : Maximum number of participants
- Enrolments until (enrolments_until) : Until when new enrolments are accepted.
- No. of participants (num_guests) : The number of expected participants for each operation.
- Free places (free_places) : Number of free places.
- Requested (requested) : Number of requested places.
- Confirmed (confirmed) : Number of confirmed places.
- Trying (trying) : Number of trying places.
- When (weekdays_text) : A virtual field returning the textual formulation of the weekdays where the recurrence occurs.
- Workflow (workflow_buttons) : Shows the current workflow state of this database row and a list of available workflow actions.
- None (overview) : A multi-paragraph representation of this database row.
>>> with translation.override('fr'):
... show_fields(courses.Course, 'num_guests')
- Nb de participants (num_guests) : Le nombre de participants prévus pour chaque opération.