[Checkins] SVN: z3c.formext/branches/sagblmi-morecomponent/src/z3c/formext/group.py fix error extraction
Laurent Mignon
Laurent.Mignon at softwareag.com
Wed Jul 1 06:22:00 EDT 2009
Log message for revision 101366:
fix error extraction
Changed:
U z3c.formext/branches/sagblmi-morecomponent/src/z3c/formext/group.py
-=-
Modified: z3c.formext/branches/sagblmi-morecomponent/src/z3c/formext/group.py
===================================================================
--- z3c.formext/branches/sagblmi-morecomponent/src/z3c/formext/group.py 2009-06-30 23:12:00 UTC (rev 101365)
+++ z3c.formext/branches/sagblmi-morecomponent/src/z3c/formext/group.py 2009-07-01 10:22:00 UTC (rev 101366)
@@ -73,7 +73,7 @@
else:
error = removeSecurityProxy(error)
message = translate(error.message, context=self.request)
- if error.widget:
+ if hasattr(error, "widget"):
self.jsonResponse['errors'][error.widget.id] = message
else:
self.jsonResponse['formErrors'].append(message)
More information about the Checkins
mailing list