changeset 288:5f91eff1ae2b

PEP8 white space fix
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Sat, 20 Sep 2008 15:43:16 +0200
parents a7bdc6ec1819
children a83fb8e78dc7
files data/plugin/action/arnica_slides.py data/plugin/parser/text_x_arnica.py
diffstat 2 files changed, 1 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/action/arnica_slides.py	Sat Sep 20 09:08:22 2008 +0200
+++ b/data/plugin/action/arnica_slides.py	Sat Sep 20 15:43:16 2008 +0200
@@ -210,7 +210,6 @@
     @param images: list of webnail image IDs (either cache keys or attachment names)
     @param original_images: list of original image attachment names (thumbnails and webnails are derived from it)
     @param idx: index position of the image
-
     """
     image_url = images[idx]
     this_webnail_list = images
--- a/data/plugin/parser/text_x_arnica.py	Sat Sep 20 09:08:22 2008 +0200
+++ b/data/plugin/parser/text_x_arnica.py	Sat Sep 20 15:43:16 2008 +0200
@@ -184,7 +184,6 @@
         """ shows toolbox
         @param image: image as key for corresponding data
         """
-
         html = ''
         if self.show_tools:
             html = '<div class="html-show-tools">%(tools)s</div>' % {
@@ -218,7 +217,6 @@
         @param image: image as key for corresponding data
         @param selected_images: ordered list of selected images
         """
-
         title = ""
         if self.album:
             title = '<div class="title">%(n)d images (%(album_title)s)</div>' % {"n": len(self.arnica_image),
@@ -305,7 +303,6 @@
             if img.description != attfile:
                 image_alias[attfile] = (formatter.text(img.description), counter)
                 counter += 1
-
         if self.only_items:
             # get the same order of files and aliastext as on the page written
             files = image_alias.keys()
@@ -350,23 +347,18 @@
 
     def render(self, formatter):
         """ renders thumbnails """
-
         _ = self._
-
         # checks if initializing of all attributes in __init__ was done
         if not self.init_settings:
             return
-
         if self.target_page and (not Page(self.request, self.target_page).exists() or not self.request.user.may.read(self.target_page)):
             text = _("""Page '%(new_pagename)s' does not exist or you don't have enough rights.""") % {"new_pagename": self.target_page}
             self.request.write(self.formatter.text(text))
             return
-
         if not self.arnica_image and not self.select_files(formatter):
             text = _("No matching image file found!")
             self.request.write(self.formatter.text(text))
             return
-
         if self.template_itemlist:
             self.request.write(self.formatter.div(1, css_class="text"))
             text = _("""\
@@ -407,12 +399,11 @@
                     col_count = 0
                     result.append('<br class="clearboth">')
                 col_count += 1
-                
+
         result.insert(0, self.formatter.div(1, css_class="arnica"))
         result.append(self.formatter.div(0))
         return ''.join(result)
 
-
     def format(self, formatter):
         """ parser output """
         # checks if initializing of all attributes in __init__ was done