changeset 27:76bf4fe40f33

arnica_slides: static_url renamed to url
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Fri, 23 May 2008 15:36:03 +0200
parents 7cf17d755657
children e71bbef3a837
files data/plugin/action/arnica_slides.py
diffstat 1 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/action/arnica_slides.py	Fri May 23 15:13:17 2008 +0200
+++ b/data/plugin/action/arnica_slides.py	Fri May 23 15:36:03 2008 +0200
@@ -172,17 +172,17 @@
     @param image_for_webnail:  identifier for AttchFile or arnica_slides
     """
     if not image_for_webnail:
-        static_url = getAttachUrl(request.getScriptname(), pagename, "")
+        url = getAttachUrl(request.getScriptname(), pagename, "")
     else:
-        static_url = AttachFile.getAttachUrl(pagename, "", request)
+        url = AttachFile.getAttachUrl(pagename, "", request)
 
-    option_webnail = option_list(static_url + target[idx], pagename, target, request, image_for_webnail)
+    option_webnail = option_list(url + target[idx], pagename, target, request, image_for_webnail)
 
     inner_table_style = ' style="border-style:none; margin:10px;"'
         
     this_webnail_list = ''
     for name in target:
-        this_webnail_list += static_url + name + ','
+        this_webnail_list += url + name + ','
         html = '''
 <form name=slideform method="POST">
    <input type="hidden" name="flag" value="webnail">
@@ -245,7 +245,7 @@
 "this_exif_date_text": wikiutil.escape(exif_date[idx], quote=1),
 "this_exif_date_list": wikiutil.escape(','.join(exif_date), quote=1),
 
-"this_image": static_url + target[idx],
+"this_image": url + target[idx],
 "pagename": pagename,
 "tablestyle": inner_table_style,
 "option_webnails": option_webnail,
@@ -388,11 +388,11 @@
             image_for_webnail = int(request.form.get("image_for_webnail", [0])[0])
 
             if not image_for_webnail:
-                static_url = getAttachUrl(request.getScriptname(), pagename, target)
+                url = getAttachUrl(request.getScriptname(), pagename, target)
             else:
-                static_url = AttachFile.getAttachUrl(pagename, target, request)
+                url = AttachFile.getAttachUrl(pagename, target, request)
 
-            web['src'] = static_url
+            web['src'] = url
             web['title'] = target
 
             mimetype = "text/html"