conduit r1828 - in trunk: . conduit/modules/FacebookModule
- From: jstowers svn gnome org
- To: svn-commits-list gnome org
- Subject: conduit r1828 - in trunk: . conduit/modules/FacebookModule
- Date: Fri, 23 Jan 2009 00:32:21 +0000 (UTC)
Author: jstowers
Date: Fri Jan 23 00:32:21 2009
New Revision: 1828
URL: http://svn.gnome.org/viewvc/conduit?rev=1828&view=rev
Log:
2009-01-23 John Stowers <john stowers gmail com>
* conduit/modules/FacebookModule/FacebookModule.py:
Facebook now returns longs for pids. Convert to str before
makin a rid. Fixes #562516
Modified:
trunk/ChangeLog
trunk/conduit/modules/FacebookModule/FacebookModule.py
Modified: trunk/conduit/modules/FacebookModule/FacebookModule.py
==============================================================================
--- trunk/conduit/modules/FacebookModule/FacebookModule.py (original)
+++ trunk/conduit/modules/FacebookModule/FacebookModule.py Fri Jan 23 00:32:21 2009
@@ -58,7 +58,8 @@
rsp = self.fapi.photos.upload(
uploadInfo.url,
aid=self.albums.get(self.albumname, None))
- return Rid(uid=rsp["pid"])
+ pid = str(rsp["pid"])
+ return Rid(uid=pid)
except pyfacebook.FacebookError, f:
raise Exceptions.SyncronizeError("Facebook Upload Error %s" % f)
@@ -77,7 +78,8 @@
for p in self.fapi.photos.get(aid=albumID):
#only return big photos
if p.get("src_big", ""):
- photos[p['pid']] = p
+ pid = str(p["pid"])
+ photos[pid] = p
except pyfacebook.FacebookError, f:
log.warn("Error getting photos from album %s list: %s" % (albumID,f))
return photos
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]