changeset 72:86d3fcf5c787

arnica_slides: string substitution instead of +
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Fri, 06 Jun 2008 21:06:55 +0200
parents 42ec0fd97f59
children c827091b3427
files data/plugin/action/arnica_slides.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/action/arnica_slides.py	Fri Jun 06 20:52:24 2008 +0200
+++ b/data/plugin/action/arnica_slides.py	Fri Jun 06 21:06:55 2008 +0200
@@ -241,7 +241,8 @@
     else:
         url = AttachFile.getAttachUrl(pagename, "", request)
 
-    option_webnail = option_list(url + images[idx], pagename, images, request, image_for_webnail)
+    image_url = "%s%s" % (url, images[idx])
+    option_webnail = option_list(image_url, pagename, images, request, image_for_webnail)
     inner_table_style = ' style="border-style:none; margin:10px;"'
     this_webnail_list = "".join(["%s%s|" % (url, name) for name in images])
 
@@ -305,8 +306,7 @@
 "this_alias_list": wikiutil.escape(packLine(alias), quote=1),
 "this_exif_date_text": wikiutil.escape(exif_date[idx], quote=1),
 "this_exif_date_list": wikiutil.escape(packLine(exif_date), quote=1),
-
-"this_image": url + images[idx],
+"this_image": image_url,
 "pagename": pagename,
 "tablestyle": inner_table_style,
 "option_webnails": option_webnail,