Hi, The following code snippet demonstrates how to list all events of a non-primary calendar:
calId = '---------------------------' visibility = 'private' projection = 'full' query = gdata.calendar.service.CalendarEventQuery(username, visibility, projection) feed = calendar_service.CalendarQuery(query) for i, an_event in enumerate(feed.entry): print '\tEvent: %s. %s' % (i, an_event.title.text,) - Replace calId with the calendar ID of your non-primary calendar Hope it helps, Austin On Jan 28, 2008 5:52 PM, blucap <[EMAIL PROTECTED]> wrote: > > Hello, > > I'm trying to read event data from a non-primary calendar using > python. > > I found documentation for zend, see url at the bottom of this entry; > but I really like using python. > > It should fit somewhere in the google standard code, see below > ========================================================== > def _PrintAllEventsOnDefaultCalendar(self): > feed = self.cal_client.GetCalendarEventFeed() > print 'Events on Primary Calendar: %s' % (feed.title.text,) > for i, an_event in zip(xrange(len(feed.entry)), feed.entry): > print '\t%s. %s' % (i, an_event.title.text,) > for p, a_participant in zip(xrange(len(an_event.who)), > an_event.who): > print '\t\t%s. %s' % (p, a_participant.email,) > print '\t\t\t%s' % (a_participant.name,) > print '\t\t\t%s' % (a_participant.attendee_status.value,) > ========================================================== > > http://www.zfforums.com/zend-framework-components-13/web-web-services-22/gdata-how-get-other-calendar-than-default-one-245.html > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Calendar Data API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-calendar-help-dataapi?hl=en -~----------~----~----~----~------~----~------~--~---
