Hi,

I had the same issue, and was able to track it down to method
getresponse in google_appengine/google/appengine/dist/httplib.py.

Modify line 191:

   url = '%s://%s%s' % (self.protocol, host, self._url)

by:

   url = self._url

because self._url is already the address you want, and that line will
give you a double host (eg.
http://picasaweb.google.comhttp://picasaweb.google.com/data/feed/api/user/[email protected]?kind=album).

It now works for picasa API, so it should work for calendar as well.
It should be fixed in a better way, but at least you have a
workaround...

Hope it 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to