[Zope3-checkins] CVS: Zope3/src/zope/app/browser/component - interfacewidget.py:1.32

Anthony Baxter anthony at interlink.com.au
Tue Aug 5 04:35:56 EDT 2003


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

Modified Files:
	interfacewidget.py 
Log Message:
interfacewidgets ignored 'default' arguments. they work now.


=== Zope3/src/zope/app/browser/component/interfacewidget.py 1.31 => 1.32 ===
--- Zope3/src/zope/app/browser/component/interfacewidget.py:1.31	Wed Jul 30 13:01:36 2003
+++ Zope3/src/zope/app/browser/component/interfacewidget.py	Tue Aug  5 03:35:50 2003
@@ -95,7 +95,10 @@
             interfaces = ['None'] + interfaces
 
         marker = self
-        selected = marker
+        if field.default:
+            selected = field.default
+        else:
+            selected = marker
         if self._data is None:
             value = self.request.form.get(self.name, marker)
             if value is not marker:




More information about the Zope3-Checkins mailing list