changeset 32:03db81d282ce

added for VS mode a list of images by a new image form element (target should be used only for the current image)
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Sat, 24 May 2008 10:57:33 +0200
parents b9bc86ad2445
children e8b445ed922d
files data/plugin/action/arnica_slides.py data/plugin/parser/text_x_arnica.py
diffstat 2 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/action/arnica_slides.py	Sat May 24 10:23:35 2008 +0200
+++ b/data/plugin/action/arnica_slides.py	Sat May 24 10:57:33 2008 +0200
@@ -368,7 +368,7 @@
 
         if command == 'VS':
             web = {}
-            images = request.form.get('target', [''])[0]
+            images = request.form.get('images', [''])[0]
             images = images.split(',')
             target = images[0]
             images = (images[1:])
--- a/data/plugin/parser/text_x_arnica.py	Sat May 24 10:23:35 2008 +0200
+++ b/data/plugin/parser/text_x_arnica.py	Sat May 24 10:57:33 2008 +0200
@@ -303,6 +303,7 @@
                 <input type="hidden" name="alias" value='%(description)s'>
                 <input type="hidden" name="exif_date" value='%(exif_date)s'>
                 <input type="hidden" name="target" value='%(target)s'>
+                <input type="hidden" name="images" value='%(images)s'>
                 <input type="hidden" name="image_for_webnail" value='%(image_for_webnail)s'>
                 <input type="image" value="submit" src="?action=arnica_slides&do=view&target=%(thumbnail)s">
             </td>
@@ -317,7 +318,8 @@
      "description": self.description[idx] + '!,!' + '!,!'.join(self.description),
      "exif_date": self.exif_date[idx] + ',' + ','.join(self.exif_date),
      "image_for_webnail": self.image_for_webnail,
-     "target": self.webimg[idx] + ',' + ','.join(self.webimg),
+     "target": self.webimg[idx],
+     "images": self.webimg[idx] + ',' + ','.join(self.webimg),
      "thumbnail": self.thumb[idx],
      "tools_html": self.show_tools_mode2(idx),
      "date_html": self.show_date_mode2(idx),
@@ -374,6 +376,7 @@
                 <input type="hidden" name="alias" value='%(description)s'>
                 <input type="hidden" name="exif_date" value='%(exif_date)s'>
                 <input type="hidden" name="target" value='%(target)s'>
+                <input type="hidden" name="images" value='%(images)s'>
                 <input type="hidden" name="image_for_webnail" value='%(image_for_webnail)s'>
                 <input type="image" value="submit" type="button" src="?action=arnica_slides&do=view&target=%(thumbnail)s" >
             </td>
@@ -390,7 +393,8 @@
      "description": self.description[idx] + '!,!' + '!,!'.join(self.description),
      "exif_date": self.exif_date[idx] + ',' + ','.join(self.exif_date),
      "image_for_webnail": self.image_for_webnail,
-     "target": self.webimg[idx] + ',' + ','.join(self.webimg),
+     "target": self.webimg[idx],
+     "images": self.webimg[idx] + ',' + ','.join(self.webimg),
      "thumbnail": self.thumb[idx],
      "thumbnail_width": self.thumbnail_width,
      "tools_html": self.show_tools_mode1(idx),