Mercurial > public > src > moin > extensions
diff data/plugin/parser/text_x_arnica.py @ 226:9faa8f0e9f86
fixed docstrings and removed some whitespaces
author | Reimar Bauer <rb.proj AT googlemail DOT com> |
---|---|
date | Mon, 01 Sep 2008 18:57:06 +0200 |
parents | bcd2ea17f130 |
children | a16b7c703fd3 |
line wrap: on
line diff
--- a/data/plugin/parser/text_x_arnica.py Mon Sep 01 18:47:59 2008 +0200 +++ b/data/plugin/parser/text_x_arnica.py Mon Sep 01 18:57:06 2008 +0200 @@ -82,9 +82,6 @@ webnail_width = '%g%s' % webnail_width return locals() - - - def _get_files(request, pagename): # get files dependent on isPicture and ignores tmp. files # ToDo remove tmp. files check later @@ -92,7 +89,6 @@ files = [fn for fn in files if wikiutil.isPicture(fn) and not fn.startswith('tmp.')] return files - class Parser: """ arnica parser """ @@ -207,7 +203,7 @@ def html_tools(self, idx): """ html code of thumbnails view with contol - @param idx: index postion of corresponding data + @param idx: index position of corresponding data """ this_image = self.high_resolution_image[idx] @@ -481,7 +477,7 @@ try: im_obj.thumbnail((int(self.webnail_width.strip('px')), int(self.webnail_width.strip('px'))), Image.ANTIALIAS) except IOError: - # image file is truncated + # one reason can be that the image file is truncated return if exif: try: @@ -509,7 +505,7 @@ try: im_obj.thumbnail((int(self.thumbnail_width.strip('px')), int(self.thumbnail_width.strip('px'))), Image.ANTIALIAS) except IOError: - # image file is truncated + # one reason can be that the image file is truncated return buf = StringIO.StringIO() im_obj.save(buf, image_type) @@ -554,7 +550,7 @@ self.request.write(self.formatter.preformatted(0)) self.request.write(self.formatter.div(0)) self.request.write(self.formatter.div(0)) - # ToDo lowercase COLUMNS + cols = min([self.columns, len(self.high_resolution_image)]) if self.album: cols = 1