[Zope3-checkins] CVS: Zope3/src/zope/app/browser/form - add.py:1.21

Chris McDonough chrism@zope.com
Wed, 30 Apr 2003 15:16:30 -0400


Update of /cvs-repository/Zope3/src/zope/app/browser/form
In directory cvs.zope.org:/tmp/cvs-serv20996

Modified Files:
	add.py 
Log Message:
Guido earlier checked in a change to this file that caused the update method's call to getWidgetsData to default to "strict=True".  This causes calls content  to be uncreatable for schemas that have readonly fields.  Change update to pass exclude_readonly to getWidgetsData to make this work again.


=== Zope3/src/zope/app/browser/form/add.py 1.20 => 1.21 ===
--- Zope3/src/zope/app/browser/form/add.py:1.20	Wed Apr 30 13:22:45 2003
+++ Zope3/src/zope/app/browser/form/add.py	Wed Apr 30 15:16:30 2003
@@ -58,7 +58,8 @@
                 data = getWidgetsData(self, self.schema,
                                       strict=True,
                                       names=self.fieldNames,
-                                      set_missing=False)
+                                      set_missing=False,
+                                      exclude_readonly=True)
                 content = self.createAndAdd(data)
             except WidgetsError, errors:
                 self.errors = errors