r13750 - in Products.Archetypes/trunk: . Products/Archetypes/Schema
"Helge Tesdal" <[email protected]> Fri, 12 Aug 2011 13:51:29 +0000
| Newsgroups | gmane.comp.web.zope.plone.archetypes.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: tesdal
Date: Fri Aug 12 13:51:28 2011
New Revision: 13750
Modified:
Products.Archetypes/trunk/CHANGES.txt
Products.Archetypes/trunk/Products/Archetypes/Schema/__init__.py
Log:
Use instance, not widget when calling widget.isVisible.
Modified: Products.Archetypes/trunk/CHANGES.txt
==============================================================================
--- Products.Archetypes/trunk/CHANGES.txt (original)
+++ Products.Archetypes/trunk/CHANGES.txt Fri Aug 12 13:51:28 2011
@@ -4,6 +4,9 @@
1.7.7 - Unreleased
------------------
+- When checking isVisible in validation, use instance, not widget as argument.
+ [tesdal]
+
- Do a double DateTime conversion to avoid timezone naive values.
Refs http://dev.plone.org/plone/ticket/10141.
[rossp]
Modified: Products.Archetypes/trunk/Products/Archetypes/Schema/__init__.py
==============================================================================
--- Products.Archetypes/trunk/Products/Archetypes/Schema/__init__.py (original)
+++ Products.Archetypes/trunk/Products/Archetypes/Schema/__init__.py Fri Aug 12 13:51:28 2011
@@ -585,7 +585,7 @@
value = None
widget = field.widget
- if widget.isVisible(widget, 'edit') != 'visible':
+ if widget.isVisible(instance, 'edit') != 'visible':
continue
if form:
------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system,
user administration capabilities and model configuration. Take
the hassle out of deploying and managing Subversion and the
tools developers use with it.
http://p.sf.net/sfu/wandisco-dev2dev