j'ai bien modifié le test comme suit, les photos passent dans la procédure ... géolocalisation mais je ne les ai toujours pas :-( donc pas de commit
def syncrhonizeWithAlbumOnPicasaWeb(self):
if self.__gd_client == None: self.__setGDCklient()
if self.__PicasaGphotoId != 0:
picphotos = self.__gd_client.GetFeed('/data/feed/api/user/%s/albumid/%s?kind=photo' % (self.__PicasaUser, self.__PicasaGphotoId))
for picphoto in picphotos.entry:
for p in self.__lPhotos:
print ' p.getDatedName():',p.getDatedName(),' p.getOriginalName():',p.getOriginalName(),' picphoto.title.text:',picphoto.title.text
if p.getDatedName() == picphoto.title.text or p.getOriginalName() == picphoto.title.text:
p.setPicasaData(picphoto.GetMediaURL(), picphoto.GetHtmlLink(),picphoto.GetAlternateLink(),picphoto.summary.text)
break
Photo Geolocation done --> P1010725.JPG
Photo Geolocation done --> P1010735.JPG
Photo Geolocation done --> P1010744.JPG
Photo Geolocation done --> P1010747.JPG
Photo Geolocation done --> P1010767.JPG
Photo Geolocation done --> P1010781.JPG
Photo Geolocation done --> P1010795.JPG
la modif fonctionne, simplement le placemark generé a pour nom le nom de la photo sous sa forme datée:
<Placemark>
<name>PMI_20100724_174731</name>
<description><![CDATA[<tr><td>test for photo not renamed</td></tr><table style="width:auto;"><tr><td><a href="http://picasaweb.google.com/mikfer398/PMI20100724Pic_du_Jalouvre_pyrandotest#5517894909801035650"><img src="http://lh3.ggpht.com/_v6dXB0f0WeE/TJOAL3agd4I/AAAAAAAAB7E/dxrrXzoXMWo/s800/PMINOTRENAMED.JPG" /></a></td></tr><tr><td style="font-family:arial,sans-serif; font-size:11px; text-align:right">De <a href="http://picasaweb.google.com/mikfer398/PMI20100724Pic_du_Jalouvre_pyrandotest">PMI20100724Pic_du_Jalouvre_pyrandotest</a></td></tr></table>]]></description>
<LookAt>
<longitude>6.477228329</longitude>
<latitude>45.995597765</latitude>
<altitude>1701.670898</altitude>
<heading>????</heading>
<tilt>0</tilt>
<range>????</range>
<altitudeMode>relativeToGround</altitudeMode>
<altitudeMode>relativeToSeaFloor</altitudeMode>
</LookAt>
<styleUrl>#msn_camera9900</styleUrl>
<Point>
<coordinates>6.477228329,45.995597765,1701.670898</coordinates>
</Point>
</Placemark>
Dans ce cas , soit on laisse le nom de la photo datée, soit on remplace par le nom de la photo origine ??