[Zope3-checkins] CVS: Zope3/src/zope/app/browser/content - file.py:1.3

Jim Fulton jim@zope.com
Thu, 5 Jun 2003 16:13:37 -0400


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

Modified Files:
	file.py 
Log Message:
Changed the way widgets are created and stored in forms.
Widgets (views on fields) were stored in attributes with the same
names as the fields. This led to conflicts with other view attribute
names in some cases. Now widgets are stored in attributes with names
equal to the field name with an added suffix of '_widget'. For
example, the widget for a title field is named "title_widget".


=== Zope3/src/zope/app/browser/content/file.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/browser/content/file.py:1.2	Wed Dec 25 09:12:30 2002
+++ Zope3/src/zope/app/browser/content/file.py	Thu Jun  5 16:13:07 2003
@@ -46,7 +46,7 @@
     """File editing mix-in that uses a file-upload widget.
     """
 
-    data = CustomWidget(FileWidget)
+    data_widget = CustomWidget(FileWidget)