Frontend issue 937 is now resolved - album.update now returns the updated album

This commit is contained in:
sneakypete81 2013-03-23 16:45:24 +00:00
parent 29b4c65b9a
commit 07745f1496
2 changed files with 4 additions and 13 deletions

View file

@ -142,14 +142,8 @@ class Album(OpenPhotoObject):
""" Update this album with the specified parameters """
new_dict = self._openphoto.post("/album/%s/update.json" % self.id,
**kwds)["result"]
# Since the API doesn't give us the modified album, we need to
# update our fields based on the kwds that were sent
self._set_fields(kwds)
# Replace the above line with the below once frontend issue #937 is resolved
# self._set_fields(new_dict)
# self._update_fields_with_objects()
self._replace_fields(new_dict)
self._update_fields_with_objects()
def view(self, **kwds):
"""