In your code below, try printing out the values of
e.GetEditLink().href, e.GetEditLink().href[pos+1:], etc.

What do you get?

Ray

On Thu, Oct 16, 2008 at 9:40 AM, Jose Ignacio Naranjo
<[EMAIL PROTECTED]> wrote:

> This raise the exception InvalidURLError: ApplicationError: 1, caused
> by an invalid protocol, so I changed the url param to 'http://
> google.com/calendar/feeds/' + id_cal + '/private/full'.
>
> But with this url, when creating the event, it is raised a Method 405
> exception, telling that it is not allowed to POST over this resource
> (gdata POSTs to create the events of course!!!...).
>
> I have thought that the problem could be the 'id_cal' I have got,
> which could be wrong. This is the way I got the id of a calendar,
> please, tell me if you think this is not a good way.
>
>    feed = self.gcal.GetAllCalendarsFeed()
>
>    for e in feed.entry:
>      if e.title.text == 'gbeep_calendar':
>        pos = e.GetEditLink().href.rfind('/')
>        return e.GetEditLink().href[pos+1:]
>
> Thank you for you help.
>
> Regards,
> Jose Ignacio.
>
> >
>

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