[Zope3-checkins] CVS: Zope3/src/zope/app/browser/component - interfacewidget.py:1.10
Steve Alexander
steve@cat-box.net
Tue, 7 Jan 2003 13:19:43 -0500
Update of /cvs-repository/Zope3/src/zope/app/browser/component
In directory cvs.zope.org:/tmp/cvs-serv8496/src/zope/app/browser/component
Modified Files:
interfacewidget.py
Log Message:
Corrected the hidden() method. This needs a test...
=== Zope3/src/zope/app/browser/component/interfacewidget.py 1.9 => 1.10 ===
--- Zope3/src/zope/app/browser/component/interfacewidget.py:1.9 Tue Jan 7 12:56:01 2003
+++ Zope3/src/zope/app/browser/component/interfacewidget.py Tue Jan 7 13:19:40 2003
@@ -285,9 +285,14 @@
else:
data = self._data
name = self.name
- elements = ['<input type="hidden" name="%s" value="%s" />'
- % (name, interfaceToName(interface))
- for interface in data]
+ elements = []
+ count = 0
+ for interface in data:
+ elements.append(
+ '<input type="hidden" name="%s.i%s" value="%s" />'
+ % (name, count, interfaceToName(interface))
+ )
+ count += 1
return ''.join(elements)
def label(self):