http://code.google.com/apis/calendar/docs/1.0/developers_guide_python.html#CreatingSingle

Since Python uses duck-typing - I cannot look at your
InsertSingleEvent function, and determine what kind of date/time I
should pass.  My first attempt was a standard python DateTime, which
made the most sense to me.
This caused the following error:
AttributeError: 'datetime.datetime' object has no attribute
'decode'.   in line 296 of
google_appengine\atom\__init__.py. on the line that says:
tree.attrib[xml_attribute] = member.decode(MEMBER_STRING_ENCODING)

I finally realized that if I don't pass a date/time, you are formatted
the date/time in standard XML format,
so now that's how I pass my date/times and it works.

It would be nice if the doc would specify the proper date/time format
expected by the sample routine.

Or can I perhaps pass a real python date/time with some type of
encoding built-in to it?
I'm going to post a separate discussion on time-zone...

Thanks
Neal Walters





--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Docs Data APIs" group.
To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com
To unsubscribe from this group, send email to 
google-docs-data-apis+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Docs-Data-APIs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to