[Checkins] SVN: z3c.imagewidget/trunk/src/z3c/imagewidget/ use key method from widget

Bernd Dorn bernd.dorn at lovelysystems.com
Tue Feb 20 11:46:48 EST 2007


Log message for revision 72720:
  use key method from widget

Changed:
  U   z3c.imagewidget/trunk/src/z3c/imagewidget/README.txt
  U   z3c.imagewidget/trunk/src/z3c/imagewidget/form.py

-=-
Modified: z3c.imagewidget/trunk/src/z3c/imagewidget/README.txt
===================================================================
--- z3c.imagewidget/trunk/src/z3c/imagewidget/README.txt	2007-02-20 16:46:00 UTC (rev 72719)
+++ z3c.imagewidget/trunk/src/z3c/imagewidget/README.txt	2007-02-20 16:46:47 UTC (rev 72720)
@@ -64,8 +64,9 @@
 You can also generate the URL for the image for display:
 
   >>> editForm.imageURL
-  u'.../++session++z3c.sessionwidget.SessionInputWidget/field.img/++item++data?ts=0'
+  'http://127.0.0.1/++session++z3c.sessionwidget.SessionInputWidget/8581fb6ca22fa5f15b8e530d472628fd88b297b8/++item++data?ts=0'
 
+
 When uploading an empty image, the image is set to None:
 
   >>> imgWidget.session['changed'] = False

Modified: z3c.imagewidget/trunk/src/z3c/imagewidget/form.py
===================================================================
--- z3c.imagewidget/trunk/src/z3c/imagewidget/form.py	2007-02-20 16:46:00 UTC (rev 72719)
+++ z3c.imagewidget/trunk/src/z3c/imagewidget/form.py	2007-02-20 16:46:47 UTC (rev 72720)
@@ -128,7 +128,7 @@
         else:
             lmt = 0
         return baseURL + '/++session++%s/%s/++item++data?ts=%s' %(
-            SESSION_KEY, self.widget.name, lmt)
+            SESSION_KEY, self.widget.sessionKey, lmt)
 
 
 class ImageSessionWidgetForm(BrowserPage):



More information about the Checkins mailing list