changeset 11:7d73f63ca30e

arnica_slides: removed unecessary variables
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Sun, 09 Mar 2008 18:45:16 +0100
parents cf462b039ccf
children 39ca17464e9c
files data/plugin/action/arnica_slides.py
diffstat 1 files changed, 2 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/action/arnica_slides.py	Sun Mar 09 18:35:30 2008 +0100
+++ b/data/plugin/action/arnica_slides.py	Sun Mar 09 18:45:16 2008 +0100
@@ -79,7 +79,7 @@
 
         return txt
 
-    def html_js(self, request, this_image, counter):
+    def html_js(self, request, counter):
         """ javscript for the slides 
         @param request: request object
         @param this_image:  url of image to start
@@ -344,7 +344,6 @@
     def render(self):
         """ does execute the commands of the form data """
         _ = self.request.getText
-        form = self.form
         request = self.request
         pagename = self.pagename
 
@@ -372,7 +371,6 @@
 
             all_exif_date = request.form.get('exif_date', [''])[0]
             all_exif_date = all_exif_date.split(',')
-            this_exif_date = all_exif_date[0]
             all_exif_date = (all_exif_date[1:])
 
            # XXX Check that all lists have same length
@@ -381,7 +379,6 @@
                 if target == img:
                     idx = z
                 z += 1
-            n = len(images)
 
             attachment_path = AttachFile.getAttachDir(request, pagename)
 
@@ -390,12 +387,10 @@
             web['src'] = static_url+target #AttachFile.getAttachUrl(pagename, target, request)
             web['title'] = target
 
-            image_link = request.formatter.image(**web)
-
             request.theme.send_title(pagename,
                                  pagename=pagename,
                                  body_onload="arnica_preload();",
-                                 html_head=self.html_js(request, AttachFile.getAttachUrl(pagename, target, request), idx))
+                                 html_head=self.html_js(request, idx))
 
             request.write(request.formatter.startContent("content"))
             html = self.html_slideform(request, pagename, all_description, all_exif_date, images, idx)