Not that frontend issue 955 is resolved, we should use the return value of the transform API to replace the photo object's fields

This commit is contained in:
sneakypete81 2013-04-13 13:11:26 +01:00
parent ee3840de9f
commit ea904e4337
3 changed files with 3 additions and 17 deletions

View file

@ -98,14 +98,12 @@ class Photo(OpenPhotoObject):
def transform(self, **kwds):
"""
Performs transformation specified in **kwds
Performs transformation specified in **kwds
Example: transform(rotate=90)
"""
new_dict = self._openphoto.post("/photo/%s/transform.json" % self.id,
**kwds)["result"]
# The API doesn't currently return the transformed photo
# Uncomment the below once frontend issue #955 is resolved
# self._replace_fields(new_dict)
self._replace_fields(new_dict)
class Tag(OpenPhotoObject):
def delete(self, **kwds):