projects
/
blog.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59c7729
)
gallery.py: adjust CGIGalleryServer._image() to handle no kwargs case.
author
W. Trevor King
<wking@tremily.us>
Wed, 17 Oct 2012 22:31:21 +0000
(18:31 -0400)
committer
W. Trevor King
<wking@tremily.us>
Wed, 17 Oct 2012 22:31:21 +0000
(18:31 -0400)
posts/gallery/gallery.py
patch
|
blob
|
history
diff --git
a/posts/gallery/gallery.py
b/posts/gallery/gallery.py
index cac2ea6c49231cf99987fe7621ec91ea397ebf6c..806af0eb05249533a04882b5252b3f539081714a 100755
(executable)
--- a/
posts/gallery/gallery.py
+++ b/
posts/gallery/gallery.py
@@
-461,6
+461,8
@@
class CGIGalleryServer (object):
def _image(self, image, **kwargs):
if kwargs:
image_path,image_url = self._thumb(image, **kwargs)
+ else:
+ image_url = image
return '<img src="{}" />'.format(image_url)
def _image_page(self, image):