changeset 240:7bf57812a894

further ToDo's added
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Tue, 02 Sep 2008 11:32:01 +0200
parents 0b155267080f
children d082511f6a3b
files data/plugin/parser/text_x_arnica.py
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/parser/text_x_arnica.py	Tue Sep 02 11:19:49 2008 +0200
+++ b/data/plugin/parser/text_x_arnica.py	Tue Sep 02 11:32:01 2008 +0200
@@ -362,7 +362,7 @@
 
     def get_image_alias(self):
         """  gets the quotes from the item list and returns a dictionary of image and alias"""        
-
+        # ToDo keep the order of the given quotes
         quotes = self.raw.split('\n')
         quotes = [quote.strip() for quote in quotes]
         quotes = [quote[2:] for quote in quotes if quote.startswith('* ')]
@@ -389,9 +389,11 @@
                          AttachFile.exists(self.request, self.pagename, fn)]
             if self.sort_by_alias:
                 alias_text = image_alias.values()
+                # ToDo use a longer var
                 i = 0
                 for attfile in all_files:
                     image_dict[alias_text[i]] = attfile
+                    # ToDo use a longer var
                     i += 1
                 keys = image_dict.keys()
                 keys.sort()
@@ -458,7 +460,7 @@
                     buf.flush()
                     buf.seek(0)
                     cache.put(self.request, webnail, buf, filename=image)
-           # XXX later, a unit conversion method for using other units than 'px' is needed
+            # XXX later, a unit conversion method for using other units than 'px' is needed
             if not cache.exists(self.request, webnail):
                 try:
                     exif = im_obj._getexif()
@@ -552,6 +554,7 @@
         col_count = 1
         result = []
         for image in self.high_resolution_image:
+            # ToDo use a longer var
             i = self.high_resolution_image.index(image)
             self.create_thumbnail_and_webnail_image(image, self.web_key[i],
                                                     self.thumb_key[i], self.imgtype[i])
@@ -567,11 +570,13 @@
                     result = []
                 col_count += 1
         if result and not self.album:
+            # ToDo use a longer var
             for i in range(cols - col_count + 1):
                 result.append('')
         if self.album:
             album_image = self.album_image or self.high_resolution_image[0]
             try:
+                # ToDo use a longer var
                 i = self.high_resolution_image.index(album_image)
                 self.create_thumbnail_and_webnail_image(image, self.web_key[i], self.thumb_key[i], self.imgtype[i])
                 self.webnail_image = self.web_key