[triangle-zpug] Publishing iCal calendars with Zope

Jim Allman jim at ibang.com
Tue Aug 5 19:42:48 EDT 2003


[Fun for Mac users and others. My apologies in advance is this is 
obvious, but it was news to me..]

	I was tinkering with iCal (the free calendar program that comes with 
Mac OS X), and I noticed that you can publish and subscribe to 
calendars on the net. This requires either a .Mac subscription (nahhh) 
or... wait for it... a WebDAV server! So just for chuckles, I tried 
making a simle calendar and pushing it up to my Zope server. As they 
say, it just works.

	Here's my test calendar, which you should be able to subscribe to if 
you have iCal (or a compatible program, since I gather the schema for 
calendar data is not Apple-specific):

	webcal://www.ibang.com:8080/iCal/pubTest.ics

	Just for laughs, I've made it secure, so you should specify username 
"icaluser" and password  "showme". This access is read-only, while I'm 
using a Manager-level username to publish the calendar to Zope. It's 
ridiculously easy to publish updates automatically, and for subscribers 
to poll for updates as well. Might be useful for project/team 
calendars, to-do lists, etc.

	Also, check out the raw calendar data (below). It's interesting--not 
markup, as I'd supposed, but delimited text. (No, that's not right. 
What's a proper description for this kind of structured text?)

	=jimA=

------------------------------

BEGIN:VCALENDAR
CALSCALE:GREGORIAN
X-WR-TIMEZONE;VALUE=TEXT:US/Eastern
X-WR-CALDESC;VALUE=TEXT:This is a test calendar of public events\, which
  I'll send to a Zope server. The events herein are absolute rubbish.
PRODID:-//Apple Computer\, Inc//iCal 1.0//EN
X-WR-CALNAME;VALUE=TEXT:pubTest
X-WR-RELCALID;VALUE=TEXT:790EF402-C794-11D7-A298-000393D904D4
VERSION:2.0
BEGIN:VEVENT
UID:790EE54A-C794-11D7-A298-000393D904D4
DTSTAMP:20030805T222130Z
SUMMARY:Snail Races
DTSTART;TZID=US/Eastern:20030805T140000
DTEND;TZID=US/Eastern:20030805T200000
END:VEVENT
BEGIN:VEVENT
UID:790EEA2E-C794-11D7-A298-000393D904D4
DTSTAMP:20030805T222238Z
SUMMARY:5-day drinking binge
DTSTART;VALUE=DATE:20030807
DTEND;VALUE=DATE:20030812
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20030805T222300Z
SUMMARY:Confession
UID:790EECF7-C794-11D7-A298-000393D904D4
DTSTART;TZID=US/Eastern:20030810T090000
DURATION:PT1H
END:VEVENT
BEGIN:VEVENT
UID:790EEFB6-C794-11D7-A298-000393D904D4
DTSTAMP:20030805T222502Z
SUMMARY:Adult Swim (on Cartoon Network)
DTSTART;TZID=US/Eastern:20030813T230000
DTEND;TZID=US/Eastern:20030814T010000
RRULE:FREQ=WEEKLY;INTERVAL=1;BYDAY=MO,TU,WE,TH,SU
END:VEVENT
END:VCALENDAR




More information about the triangle-zpug mailing list