[Checkins] SVN: z3c.form/trunk/ In the spirit of asking forgiveness being easier than asking permission, fix what looks like an obvious mis-type.
Martin Aspeli
optilude at gmx.net
Tue Mar 9 09:35:18 EST 2010
Log message for revision 109872:
In the spirit of asking forgiveness being easier than asking permission, fix what looks like an obvious mis-type.
Changed:
U z3c.form/trunk/CHANGES.txt
U z3c.form/trunk/src/z3c/form/error.py
-=-
Modified: z3c.form/trunk/CHANGES.txt
===================================================================
--- z3c.form/trunk/CHANGES.txt 2010-03-09 14:34:34 UTC (rev 109871)
+++ z3c.form/trunk/CHANGES.txt 2010-03-09 14:35:18 UTC (rev 109872)
@@ -5,6 +5,10 @@
2.3.3 (unreleased)
------------------
+- The last discriminator of the 'message' IValue adapter used in the
+ ErrorViewSnippet is called 'content', but it was looked up as the error view
+ itself. It is now looked up on the form's context.
+
- Don't let util.getSpecification() generate an interface more than once.
This causes strange effects when used in value adapters: if two adapters
use e.g. ISchema['some_field'] as a "discriminator" for 'field', with one
Modified: z3c.form/trunk/src/z3c/form/error.py
===================================================================
--- z3c.form/trunk/src/z3c/form/error.py 2010-03-09 14:34:34 UTC (rev 109871)
+++ z3c.form/trunk/src/z3c/form/error.py 2010-03-09 14:35:18 UTC (rev 109872)
@@ -68,7 +68,7 @@
def update(self):
value = zope.component.queryMultiAdapter(
(self.context, self.request, self.widget,
- self.field, self.form, self),
+ self.field, self.form, self.content),
interfaces.IValue, name='message')
if value is not None:
self.message = value.get()
More information about the checkins
mailing list