Open hhorstia opened 12 years ago
An update to this feature request: Do not use exporting because it can't be synced and must be done for each season. Instead, use CalDAV and give each player an url which gives ALL their matches and can be synced. Thus, once a player sets this up into his calendar, he NEVER needs to touch it again and he will always receive up-to-date information about his matches in the future.
The calendar url could be for instance: mydomain.com/players/firstname.lastname/calendar
Some docs: http://calconnect.org/caldav/implementations/librariestools.html http://pythonhosted.org//caldav/
Any help/ideas is appreciated. :)
Or is CalDAV a bit overkill for readonly calendar? Would some simpler solution be better?
Also: http://en.wikipedia.org/wiki/ICalendar
Instead, use CalDAV and give each player an url which gives ALL their matches and can be synced. Thus, once a player sets this up into his calendar, he NEVER needs to touch it again and he will always receive up-to-date information about his matches in the future.
Additional feature request: The calendar event could contain information on whether the player has rsvp'd for the match. Might be easier to remember if one sees the info directly in their calendar instead of having to open the web page every now and then to check. Perhaps you could even provide direct URLs to choices IN/OUT/? to allow one click rsvp from the calendar software.
My android/cyanogenmod calendar does not support iCalendar URL syncing. :(
Maybe it is easy to implement a simple CalDAV communication. See for instance: http://sabre.io/dav/building-a-carddav-client/ http://blogs.nologin.es/rickyepoderi/index.php?/archives/14-Introducing-CalDAV-Part-I.html
CalDAV sends calendar data in iCalendar format, so probably it is trivial to add an iCalendar URL for those who can't use CalDAV.
Matches need to have a version number so that it is possible to know which events have changed and need to be downloaded by the client. Maybe use autoincrementing "version" number: http://stackoverflow.com/questions/1598932/atomic-increment-of-a-counter-in-django or timestamps: https://django-model-utils.readthedocs.org/en/latest/models.html#timestampedmodel
This seems like a useful utility (generating/parsing iCalendar): https://pypi.python.org/pypi/icalendar/ http://icalendar.readthedocs.org/en/latest/usage.html#overview
It would be useful to be able to export match events for a whole season automatically from the season page. A preferable format would be .ics (http://en.wikipedia.org/wiki/ICalendar)