[Zope3-checkins] CVS: Zope3/src/zope/app/browser/form - editview.py:1.14

Jim Fulton jim@zope.com
Fri, 7 Mar 2003 16:28:52 -0500


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

Modified Files:
	editview.py 
Log Message:
Modified to pass exclude_readonly to getWidgetsData so we don't try to
get data for readonly fields in a *edit* form.


=== Zope3/src/zope/app/browser/form/editview.py 1.13 => 1.14 ===
--- Zope3/src/zope/app/browser/form/editview.py:1.13	Fri Mar  7 11:44:40 2003
+++ Zope3/src/zope/app/browser/form/editview.py	Fri Mar  7 16:28:51 2003
@@ -133,7 +133,8 @@
                 data = getWidgetsData(self, self.schema,
                                       strict=False,
                                       set_missing=True,
-                                      names=self.fieldNames)
+                                      names=self.fieldNames,
+                                      exclude_readonly=True)
                 unchanged = self.apply_update(data)
             except WidgetsError, errors:
                 self.errors = errors