Add Photo.to_html_img.

debian-sid
Tom Payne 15 years ago
parent e055f043cc
commit cdb042a324

@ -66,3 +66,7 @@ class Photo(object):
self.description = exif.parse_usercomment(user_comment)
else:
self.description = None
def to_html_img(self):
return '<img alt="%s" src="%s" height="%d" width="%d"/>' % \
(self.name, self.url, self.jpeg.height, self.jpeg.height)

Loading…
Cancel
Save