Polishing...

This commit is contained in:
Jason A. Donenfeld
2011-05-06 21:12:51 -04:00
parent b7641975a6
commit 2e017d0df3
3 changed files with 33 additions and 6 deletions

View File

@ -87,7 +87,7 @@ class Album(object):
return None
class Photo(object):
thumb_sizes = [ (150, True), (640, False), (800, False), (1024, False) ]
thumb_sizes = [ (75, True), (150, True), (640, False), (800, False), (1024, False) ]
def __init__(self, path, thumb_path=None, attributes=None):
self._path = trim_base(path)
self.is_valid = True
@ -192,6 +192,9 @@ class Photo(object):
def __str__(self):
return self.name
@property
def path(self):
return self._path
@property
def image_caches(self):
return [image_cache(self._path, size[0], size[1]) for size in Photo.thumb_sizes]
@property