Hi, I had the same issue, and I was able to track it down to a file in the GAE library. It's not a perfect fix, but at least a nice workaround (nice in the sense that it works). You just have to edit file google/appengine/dist/ httplib and replace line 191:
url = '%s://%s%s' % (self.protocol, host, self._url) by url = self._url The issue is that self._url is already the url you want to access, so that line mess up the URL, with a result like 'http:// picasaweb.google.comhttp://picasaweb.google.com/blabla'. Any subsequent parse attempt fails. Hope this helps. Christophe On Feb 24, 6:34 am, maneesh <[email protected]> wrote: > FWIW, I tried the magic cookie method (I have apubliccalendarup) > > username='h9iot5h97etefi3dslcigp825k%40group.calendar.google.com' > visibility='private-fad500141f9ad2c0c407f3af21538f68' > projection='basic' > query = gdata.calendar.service.CalendarEventQuery(username, > visibility, projection, None, None) > > calendar_service = gdata.calendar.service.CalendarService() > feed = calendar_service.CalendarQuery(query) > > I still get this error from urlfetch apparently, > DownloadError: ApplicationError: 2 nonnumeric port: '' > > I am probably being quite bone-headed, but would love some advice. > > On Feb 22, 11:02 pm, maneesh <[email protected]> wrote: > > > Hi all, > > I'm just trying to get alistofeventsfrom a specificpublic > >calendar(so I shouldn't need authentication), can anyone point out > > what I am doing wrong in this snippet? > > > calendar_service = gdata.calendar.service.CalendarService() > > calendar= gdata.calendar.CalendarListEntry() > > calendar.id = atom.Id > > (text='[email protected]') > > returned_calendar = calendar_service.InsertCalendarSubscription > > (calendar) > > > python throws exceptions in the InsertCalendarSubscription call ( I > > think thecalendarobject isn't valid), any help would be > > appreciated... --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
