changeset 224:bcd2ea17f130

PEP8 fix
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Mon, 01 Sep 2008 18:08:45 +0200
parents b70f83d3aa46
children c34794a7962b
files data/plugin/action/arnica_slides.py data/plugin/parser/text_x_arnica.py
diffstat 2 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/action/arnica_slides.py	Mon Sep 01 18:04:50 2008 +0200
+++ b/data/plugin/action/arnica_slides.py	Mon Sep 01 18:08:45 2008 +0200
@@ -429,7 +429,7 @@
                 img_type = 'PNG'
                 thumbfile = "tmp.thumbnail_%s.png" % filename
                 webnail = "tmp.webnail_%s.png" % filename
-            
+
             if command in ('delete', 'rotate_left', 'rotate_right', ):
                 cache.remove(self.request, webnail)
                 cache.remove(self.request, thumbfile)
--- a/data/plugin/parser/text_x_arnica.py	Mon Sep 01 18:04:50 2008 +0200
+++ b/data/plugin/parser/text_x_arnica.py	Mon Sep 01 18:08:45 2008 +0200
@@ -555,12 +555,12 @@
             self.request.write(self.formatter.div(0))
             self.request.write(self.formatter.div(0))
         # ToDo lowercase COLUMNS
-        COLUMNS = min([self.columns, len(self.high_resolution_image)])
+        cols = min([self.columns, len(self.high_resolution_image)])
         if self.album:
-            COLUMNS = 1
+            cols = 1
         data = TupleDataset()
         data.columns = []
-        for dummy in range(COLUMNS):
+        for dummy in range(cols):
             data.columns.extend([Column('', label=(''))])
         col_count = 1
         result = []
@@ -573,16 +573,16 @@
                 if self.image_for_webnail:
                     self.webnail_image = self.high_resolution_image
                 text = self.html_arrange_thumbnails(i)
-                if col_count <= COLUMNS:
+                if col_count <= cols:
                     result.append(''.join(text))
-                if col_count == COLUMNS:
+                if col_count == cols:
                     col_count = 0
                     data.addRow(tuple(result))
                     # resets the result list after the row is added
                     result = []
                 col_count += 1
         if result and not self.album:
-            for i in range(COLUMNS - col_count + 1):
+            for i in range(cols - col_count + 1):
                 result.append('')
         if self.album:
             album_image = self.album_image or self.high_resolution_image[0]