ctdo-trac/TracRendezVous/tracrendezvous/event/templates/ical.txt

34 lines
998 B
Plaintext
Raw Permalink Normal View History

2012-03-31 15:45:24 +00:00
BEGIN:VCALENDAR
PRODID://TracRendezVous-0.3 by Stefan Kögl //DE
VERSION:2.0
CALSCALE:GREGORIAN
CAL-ADDRESS:${abs_href.events("upcoming")}
METHOD:PUBLISH
X-WR-CALNAME:${calname}
X-WR-TIMEZONE:UTC
X-WR-CALDESC:${caldesc}
{% for event in events %}\
BEGIN:VEVENT
UID:${"%s-%d@%s" % (event.time_begin.strftime("%Y%m%dT%H%M%SZ"), event.e_id, abs_href())}
CREATED:${event.time_created.strftime("%Y%m%dT%H%M%SZ")}
DTSTAMP:${stamp}
LAST-MODIFIED:${event.time_modified.strftime("%Y%m%dT%H%M%SZ")}
SUMMARY:${event.name.replace(",", "\,")}
LOCATION:${event.location.name.replace(",", "\,")}
GEO:${event.location.lat};${event.location.lon}
URI:${abs_href.events(event.e_id)}
DESCRIPTION:more information:${abs_href.events(event.e_id)}
CLASS:PUBLIC
DTSTART:${event.time_begin.strftime("%Y%m%dT%H%M%SZ")}
DTEND:${event.time_end.strftime("%Y%m%dT%H%M%SZ")}
{% for rrule in event.rrules %}\
${rrule}
{% end %}\
{% for alarm in event.alarms %}\
${alarm}
{% end %}\
TRANSP:OPAQUE
END:VEVENT
{% end %}\
END:VCALENDAR