[Zope3-checkins] CVS: Zope3/src/zope/app/browser/form - vocabularywidget.py:1.1.2.3
Fred L. Drake, Jr.
fred@zope.com
Fri, 16 May 2003 16:12:14 -0400
Update of /cvs-repository/Zope3/src/zope/app/browser/form
In directory cvs.zope.org:/tmp/cvs-serv7000
Modified Files:
Tag: schema-vocabulary-branch
vocabularywidget.py
Log Message:
Clean up the generated form components. As a side effect, they're a
little bit smaller now.
=== Zope3/src/zope/app/browser/form/vocabularywidget.py 1.1.2.2 => 1.1.2.3 ===
--- Zope3/src/zope/app/browser/form/vocabularywidget.py:1.1.2.2 Fri May 16 15:56:32 2003
+++ Zope3/src/zope/app/browser/form/vocabularywidget.py Fri May 16 16:12:13 2003
@@ -204,7 +204,7 @@
s = self.queryview.renderInput()
contents.append(self._div('queryinput', s))
have_results = True
- contents.append(self._div('currentvalue', self.renderValue(value)))
+ contents.append(self._div('value', self.renderValue(value)))
if self.queryview and not have_results:
s = self.queryview.renderInput()
if s:
@@ -324,14 +324,10 @@
# to widget.renderElement().
rendered_items = self.renderItems(value)
return widget.renderElement(self.getValue('tag'),
- type=self.getValue('type'),
name=self.name + ':list',
multiple=None,
- id=self.name,
- cssClass='currentvalue',
size=self.getValue('size'),
- contents="\n".join(rendered_items),
- extra=self.getValue('extra'))
+ contents="\n".join(rendered_items))
def hidden(self):
L = []