Closed GoogleCodeExporter closed 9 years ago
This patch should help to get the issue resolved (might not the best way to fix
it) :
--- gdata/contacts/data.py 2010-08-06 14:19:24.128714926 -0400
+++ gdata/contacts/data.py.orig 2010-08-06 14:19:12.058711885 -0400
@@ -469,6 +469,6 @@
Returns:
A ProfilesFeed object corresponding to the given XML.
"""
- return atom.core.parse(xml_string, ProfilesFeed)
+ return atom.core.parse(ProfilesFeed, xml_string)
--- gdata/contacts/client.py.orig 2010-08-06 14:27:50.718714109 -0400
+++ gdata/contacts/client.py 2010-08-06 14:27:55.298756159 -0400
@@ -313,9 +313,9 @@
On failure, raises a RequestError.
"""
uri = uri or self.GetFeedUri('profiles')
- return self.Get(uri,
- desired_class=gdata.contacts.data.ProfilesFeedFromString)
+ resp = self.Get(uri).read()
+ return gdata.contacts.data.ProfilesFeedFromString(resp)
GetProfilesFeed = get_profiles_feed
Original comment by guillaum...@gmail.com
on 6 Aug 2010 at 6:28
A correction : the patch on gdata/contacts/data.py should be :
return atom.core.parse(xml_string=xml_string, target_class=ProfilesFeed)
Original comment by guillaum...@gmail.com
on 6 Aug 2010 at 6:37
This will protect the ProfilesFeedFromString() function from API changes.
Original comment by guillaum...@gmail.com
on 6 Aug 2010 at 6:38
This is fixed in 9e049e10f5.
Original comment by joe.gregorio@gmail.com
on 17 Sep 2010 at 6:17
Original issue reported on code.google.com by
guillaum...@gmail.com
on 6 Aug 2010 at 6:06