[Zope3-checkins] CVS: Zope3/src/zope/app/browser/form - vocabularywidget.py:1.24
Fred L. Drake, Jr.
fred@zope.com
Mon, 2 Jun 2003 14:16:26 -0400
Update of /cvs-repository/Zope3/src/zope/app/browser/form
In directory cvs.zope.org:/tmp/cvs-serv16111
Modified Files:
vocabularywidget.py
Log Message:
When we have an internal API for something, use it.
=== Zope3/src/zope/app/browser/form/vocabularywidget.py 1.23 => 1.24 ===
--- Zope3/src/zope/app/browser/form/vocabularywidget.py:1.23 Mon Jun 2 13:35:09 2003
+++ Zope3/src/zope/app/browser/form/vocabularywidget.py Mon Jun 2 14:16:26 2003
@@ -203,7 +203,7 @@
raise MissingInputError(self.context.__name__,
self.title,
"required field not present")
- data = self.context.default
+ data = self._getDefault()
else:
self.setData(data)
return data
@@ -227,7 +227,7 @@
raise MissingInputError(self.context.__name__,
self.title,
"required field not present")
- data = self.context.default
+ data = self._getDefault()
else:
data = []
self.setData(data)