changeset 96:63da0711188e

arnica_slides: fixed bug in comparison for image_for_webnail
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Sun, 22 Jun 2008 14:48:56 +0200
parents 564e8ffe3d4b
children 477255e09c8c
files data/plugin/action/arnica_slides.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/action/arnica_slides.py	Sun Jun 22 14:20:34 2008 +0200
+++ b/data/plugin/action/arnica_slides.py	Sun Jun 22 14:48:56 2008 +0200
@@ -377,7 +377,7 @@
         # XXX Check that all lists have same length
         idx = images.index(target)
 
-        image_for_webnail = (request.form.get("image_for_webnail", [0])[0])  is 'True'
+        image_for_webnail = (request.form.get("image_for_webnail", [0])[0])  == u'True'
         web = {}
         if not image_for_webnail:
             web['src'] = getAttachUrl(request.getScriptname(), pagename, target)