added order to Artist.get_images()

This commit is contained in:
Amr Hassan 2009-09-01 06:14:45 +00:00
parent 1667f43454
commit bd1ce5ebaf
2 changed files with 7 additions and 2 deletions

2
.build
View file

@ -1 +1 @@
5
6

View file

@ -94,6 +94,10 @@ COVER_LARGE = 2
COVER_EXTRA_LARGE = 3
COVER_MEGA = 4
IMAGES_ORDER_POPULARITY = "popularity"
IMAGES_ORDER_DATE = "dateadded"
USER_MALE = 'Male'
USER_FEMALE = 'Female'
@ -1554,10 +1558,11 @@ class Artist(_BaseObject, _Taggable):
return self.network._get_url(domain_name, "artist") %{'artist': artist}
def get_images(self, limit=None):
def get_images(self, order=IMAGES_ORDER_POPULARITY, limit=None):
"""
Returns a sequence of Image objects
if limit is None it will return all
order can be IMAGES_ORDER_POPULARITY or IMAGES_ORDER_DATE
"""
images = []