I'm having problems updating a photo's metadata.
As laid out in the api docs [0], I pull down a photo Entry construct,
replace some of the metadata, and push it back to the url found in the
<link rel='edit'> element. This fails, with the following response
from the server:
File "/usr/lib/python2.5/site-packages/gdata/service.py", line 857,
in Put
'reason': server_response.reason, 'body': result_body}
gdata.service.RequestError: {'status': 400, 'body': 'Content-Type
application/atom+xml is not valid.', 'reason': 'Bad Request'}
I've tried trimming the Entry before I ship it, without any luck.
However, the error message suggests that this is more of an
existential problem: surely an Atom content type should be the blood
and bones of a gdata centered service?
Let me know if you need more details, and I'll try to extract some
code to back this up.
Take care,
Håvard
[0]: http://code.google.com/apis/picasaweb/gdata.html#Update_Photo