carolinux / gdata-python-client

Automatically exported from code.google.com/p/gdata-python-client
0 stars 1 forks source link

Not able to change a date of my Picasa Web Albums album #509

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I am not able to change a date of my Picasa Web Albums album via Python API. 
Spent many hours with that and I am hopeless now. Code:

{{{
# set values
remote_album.timestamp.text = str(get_published_as_timestamp())
remote_album.published.text = published + 'T04:01:01.000Z'

# test before
print remote_album.published
print remote_album.published.text
print remote_album.timestamp.text

# save it remotely
remote_album = picasa.Put(remote_album, remote_album.GetEditLink().href, 
converter=gdata.photos.AlbumEntryFromString)

# test after
print remote_album.published.text
print remote_album.timestamp.text

# :'-(
}}}

Output is:

{{{
<ns0:published 
xmlns:ns0="http://www.w3.org/2005/Atom">2010-12-24T04:01:01.000Z</ns0:published>
2010-12-24T04:01:01.000Z
1293148000
1970-01-15T23:12:28.000Z
1293148000
}}}

What version of the product are you using?
python-gdata Ubuntu package, version 2.0.8-1.1 (maverick)

Original issue reported on code.google.com by jan.javorek on 29 Mar 2011 at 8:21

GoogleCodeExporter commented 9 years ago

Original comment by afs...@google.com on 7 Oct 2011 at 12:23