I have just written here
http://groups.google.com/group/google-apps-apis/browse_thread/thread/11107de621962e62,
but I feel that I should have written here first.
As I said in the other thread, if I try to create an event using an
url like '/calendar/feeds/' + id_cal + '/private/full', I get this:
File "/home/jor/google_apps/gbeep/core/gcalendar.py", line 53, in
_InsertEvent
new_event = self.gcal.InsertEvent(event, '/calendar/feeds/' +
id_cal + '/private/full')
File "/home/jor/google_apps/gbeep/gdata/calendar/service.py", line
149, in InsertEvent
converter=gdata.calendar.CalendarEventEntryFromString)
File "/home/jor/google_apps/gbeep/core/gdata/service.py", line 831,
in Post
media_source=media_source, converter=converter)
File "/home/jor/google_apps/gbeep/core/gdata/service.py", line 916,
in PostOrPut
headers=extra_headers)
File "/home/jor/google_apps/gbeep/core/gdata/atom/service.py", line
163, in request
data=data, headers=all_headers)
File "/home/jor/google_apps/gbeep/gdata/auth.py", line 456, in
perform_request
return http_client.request(operation, url, data=data,
headers=headers)
File "/home/jor/google_apps/gbeep/gdata/alt/appengine.py", line 123,
in request
method=method, headers=all_headers, follow_redirects=False))
File "/home/jor/google_appengine/google/appengine/api/urlfetch.py",
line 262, in fetch
raise InvalidURLError(str(e))
InvalidURLError: ApplicationError: 1
So, I changed the url an append at the start 'http://google.com/',
then the error became to this:
File "/home/jor/google_apps/gbeep/core/gdata/service.py", line 951,
in PostOrPut
'reason': server_response.reason, 'body': result_body}
RequestError: {'status': 405, 'body': '...405 Method Not Allowed...The
request method <code>POST</code> is inappropriate for the URL <code>/
calendar/feeds/[EMAIL PROTECTED]/private/full...,
'reason': ''}
I have tried previously with the default calendar '/calendar/feeds/
default/private/full', working without any problem, so probably my
problem is with the url that I get in this way:
feed = self.gcal.GetAllCalendarsFeed()
for e in feed.entry:
if e.title.text == title:
pos = e.GetEditLink().href.rfind('/')
return e.GetEditLink().href[pos+1:]
I get only the last part of the href, which I think is the calendar's
id, isn't it?
I am stuck here, please help! :)
Thank you.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---