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

Guido van Rossum guido@python.org
Wed, 30 Apr 2003 13:22:46 -0400


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

Modified Files:
	add.py 
Log Message:
In update(), use getWidgetsData(..., strict=True); this generates
fairly nice user errors for missing form fields rather than various
TypeErrors.


=== Zope3/src/zope/app/browser/form/add.py 1.19 => 1.20 ===
--- Zope3/src/zope/app/browser/form/add.py:1.19	Wed Apr 16 17:51:37 2003
+++ Zope3/src/zope/app/browser/form/add.py	Wed Apr 30 13:22:45 2003
@@ -56,7 +56,7 @@
             self.update_status = ''
             try:
                 data = getWidgetsData(self, self.schema,
-                                      strict=False,
+                                      strict=True,
                                       names=self.fieldNames,
                                       set_missing=False)
                 content = self.createAndAdd(data)