[Checkins] SVN: z3c.widget/trunk/src/z3c/widget/image/widget.py comment for context hack

Manfred Schwendinger manfred.schwendiger at lovelysystems.com
Fri Apr 27 11:08:31 EDT 2007


Log message for revision 74860:
  comment for context hack

Changed:
  U   z3c.widget/trunk/src/z3c/widget/image/widget.py

-=-
Modified: z3c.widget/trunk/src/z3c/widget/image/widget.py
===================================================================
--- z3c.widget/trunk/src/z3c/widget/image/widget.py	2007-04-27 14:59:52 UTC (rev 74859)
+++ z3c.widget/trunk/src/z3c/widget/image/widget.py	2007-04-27 15:08:31 UTC (rev 74860)
@@ -31,6 +31,9 @@
             return None
         else:
             if not filedata:
+                # formlib does not adapt the context if render_context
+                # is set to false. so we have no valid context and a
+                # ForbiddenAttribute error is thrown.
                 try:
                     return self.context.get(self.context.context)
                 except ForbiddenAttribute:



More information about the Checkins mailing list