- class indico.modules.events.reminders.models.reminders.EventReminder(**kwargs)¶
Email reminders for events.
A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
- property all_recipients¶
Return all recipients of the notifications.
This includes both explicit recipients and, if enabled, participants/speakers of the event.
If the notification should include the event’s iCalendar file.
The date/time when the reminder was created
The user who created the reminder
The ID of the user who created the reminder
The Event this reminder is associated with
The ID of the event
How long before the event start the reminder should be sent This is needed to update the scheduled_dt when changing the start time of the event.
The ID of the reminder
If the notification should include the event’s description.
If the notification should include a summary of the event’s schedule.
- property is_overdue¶
Return if the reminder is relative to the event time.
If the reminder has been sent
- property locator¶
Custom message to include in the email
- query: IndicoBaseQuery¶
A SQLAlchemy query for a model. Equivalent to
db.session.query(Model). Can be customized per-model by overriding
The query interface is considered legacy in SQLAlchemy. Prefer using
The recipients of the notification
The address to use as Reply-To in the notification email.
The date/time when the reminder should be sent
Send the reminder to its recipients.
If the notification should also be sent to all event participants
If the notification should also be sent to all event speakers
- indico.modules.events.reminders.util.make_reminder_email(event, with_agenda, with_description, note)¶
Return the template module for the reminder email.
event – The event
with_agenda – If the event’s agenda should be included
note – A custom message to include in the email