If an object is passed as a parameter, extract its ID.

This allows things like:
   photos = client.photos.list()
   client.photos.delete(photos)
This commit is contained in:
sneakypete81 2012-09-04 09:08:57 +01:00
parent 21c38c53cb
commit fafeb70ec1
7 changed files with 53 additions and 28 deletions

View file

@ -1,4 +1,4 @@
from openphoto_http import OpenPhotoError, NotImplementedError
from errors import *
class OpenPhotoObject:
""" Base object supporting the storage of custom fields as attributes """