Revision: 59
Author: jimsaku
Date: Mon Jan 6 22:20:36 2014 UTC
Log: applied patch from issue 27 (added 'views' information to photo
object)
http://code.google.com/p/flickrpy/source/detail?r=59
Modified:
/trunk/flickr.py
=======================================
--- /trunk/flickr.py Fri Nov 1 16:26:16 2013 UTC
+++ /trunk/flickr.py Mon Jan 6 22:20:36 2014 UTC
@@ -61,7 +61,7 @@
'owner', 'dateposted', 'datetaken', 'takengranularity',
'title', 'description', 'ispublic', 'isfriend', 'isfamily',
'cancomment', 'canaddmeta', 'comments', 'tags', 'permcomment',
- 'permaddmeta', 'url']
+ 'permaddmeta', 'url', 'views']
#XXX: Hopefully None won't cause problems
def __init__(self, id, owner=None, dateuploaded=None, \
@@ -69,7 +69,7 @@
isfriend=None, isfamily=None, cancomment=None, \
canaddmeta=None, comments=None, tags=None, secret=None, \
isfavorite=None, server=None, farm=None, license=None, \
- rotation=None, url=None):
+ rotation=None, url=None, views=None):
"""Must specify id, rest is optional."""
self.__loaded = False
self.__cancomment = cancomment
@@ -97,6 +97,7 @@
self.__permcomment = None
self.__permaddmeta = None
self.__url = None
+ self.__views = None
def __setattr__(self, key, value):
if key in self.__class__.__readonly:
@@ -154,7 +155,7 @@
self.__canaddmeta = photo.editability.canaddmeta
self.__comments = photo.comments.text
self.__url = photo.urls.url.text
-
+ self.__views = photo.views
try:
self.__permcomment = photo.permissions.permcomment