google app engine - Parsing atom response from InsertCalendar in Python on GAE (Calendar API) -
using gdata calendar api via app engine in python, when create event there handy little helper methods parse response:
new_event = calendar_service.insertevent(event, '/calendar/feeds/default/private/full') helper = new_event.geteditlink().href
when create new calendar:
new_calendar = gd_client.insertcalendar(new_calendar=calendar)
i wondering if there might related methods can't find in documentation (or are--perhaps--undocumented)?
i need store new calendar's id in datastore, along lines of:
new_calendar = gd_client.insertcalendar(new_calendar=calendar) new_calendar.getgrouplink().href
in code, calendar being created, , g returning atom response 201, before using elementtree or atom.parse extract desired element, hoping here might able help.
many in advance :)
i've never used gdata api, wrong, but...
it looks getlink()
return link object specified rel. seems geteditlink()
calls getlink()
, passing in rel of edit link. should able call getlink()
on response insertcalendar()
, , pass in rel of group link.
here's pydoc info used figure out: http://gdata-python-client.googlecode.com/svn/trunk/pydocs/gdata.calendar_resource.data.html
Comments
Post a Comment