[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/form/browser/ - fixed HTML rendered by ItemsMultiDisplayWidget

Yvo Schubbe y.2006_ at wcm-solutions.de
Mon Dec 4 16:43:22 EST 2006


Log message for revision 71402:
  - fixed HTML rendered by ItemsMultiDisplayWidget

Changed:
  U   Zope3/trunk/src/zope/app/form/browser/itemswidgets.py
  U   Zope3/trunk/src/zope/app/form/browser/tests/test_itemswidget.py

-=-
Modified: Zope3/trunk/src/zope/app/form/browser/itemswidgets.py
===================================================================
--- Zope3/trunk/src/zope/app/form/browser/itemswidgets.py	2006-12-04 21:41:26 UTC (rev 71401)
+++ Zope3/trunk/src/zope/app/form/browser/itemswidgets.py	2006-12-04 21:43:21 UTC (rev 71402)
@@ -258,8 +258,6 @@
         if value:
             rendered_items = self.renderItems(value)
             return renderElement(self.tag,
-                                 type=self.type,
-                                 name=self.name,
                                  id=self.name,
                                  cssClass=self.cssClass,
                                  contents="\n".join(rendered_items),

Modified: Zope3/trunk/src/zope/app/form/browser/tests/test_itemswidget.py
===================================================================
--- Zope3/trunk/src/zope/app/form/browser/tests/test_itemswidget.py	2006-12-04 21:41:26 UTC (rev 71401)
+++ Zope3/trunk/src/zope/app/form/browser/tests/test_itemswidget.py	2006-12-04 21:43:21 UTC (rev 71402)
@@ -137,13 +137,10 @@
         widget = self._makeWidget(form={'field.numbers': ['token1', 'token2']})
         self.assertEqual(
             widget(),
-            '<%s class="textType" '
-            'id="field.numbers" '
-            'name="field.numbers" '
-            'type="text" >'
+            '<%s id="field.numbers" >'
             '<li>One</li>\n<li>Two</li>'
             '</%s>' %(self._tag, self._tag))
-        
+
     def test_renderItems(self):
         widget = self._makeWidget()
         self.assertEqual(



More information about the Zope3-Checkins mailing list