Main resources¶
Calendar¶
VosaeCalendar¶
GoogleCalendar¶
- class www.organizer.models.GoogleCalendar(*args, **values)¶
A wrapper to a Google calendar.
Calendar informations, events are grabbed using the Google API.
Not yet implemented.
CalendarList¶
VosaeEvent¶
- class www.organizer.models.VosaeEvent(*args, **values)¶
- check_immediate_reminders_emit()¶
Checks if the next reminder is in the timeframe and schedule its task if needed
- get_start_timezone()¶
Returns the start timezone. Uses the calendar timezone if event’s start timezone is not set
- classmethod post_delete(sender, document, **kwargs)¶
Post delete hook handler
- De-index event from elasticsearch
- classmethod post_save(sender, document, created, **kwargs)¶
Post save hook handler
- If next reminder in the timeframe, emits the task directly
- Index event in elasticsearch
- Update calendar iCal data
- classmethod pre_save(sender, document, **kwargs)¶
Pre save hook handler
- Preset ical uid (based on id)
- Regularize timezones
- Generates a list of the next occurrences
- Schedule the next reminder occurrence
- Set computed values/cache (original start, iCal data)
- to_ical()¶
Generates an iCal formatted buffer of event’s details