Dear all,
I have a python script which constantly updates google calendar with
new events, removing old and so on. Up to now, everything was working
fine, but suddenly I started to get 400 error, Bad request. So I
started to look what is wrong, and found, that there is a v2 python
API.
So to delete event I changed from this:
def DeleteEvent(calendar_service, event):
calendar_service.DeleteEvent(event.GetEditLink().href)
to this:
def DeleteEvent(calendar_client, event):
calendar_client.Delete(event)
But now I'm getting an exception:
Traceback (most recent call last):
File "./trunk/gcalendar.py", line 222, in delete_event
self.service.Delete(event)
File "/usr/local/lib/python2.6/dist-packages/gdata/service.py", line
1424, in Delete
if uri.find('gsessionid=') < 0:
AttributeError: 'CalendarEventEntry' object has no attribute 'find'
I updated gdata libs to the newest version (2.0.14), but that didn't
help... What could be wrong?
Thanks,
Rapolas K.
--
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://code.google.com/apis/calendar/community/forum.html