[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/form/browser/ Fix bug 367, reporeted by Voblia.

Roger Ineichen roger at projekt01.ch
Fri Feb 18 19:18:08 EST 2005


Log message for revision 29217:
  Fix bug 367, reporeted by Voblia.
  It's so easy to fix bugs, if the solution is reported in the Issue ;-)

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

-=-
Modified: Zope3/trunk/src/zope/app/form/browser/itemswidgets.py
===================================================================
--- Zope3/trunk/src/zope/app/form/browser/itemswidgets.py	2005-02-19 00:08:56 UTC (rev 29216)
+++ Zope3/trunk/src/zope/app/form/browser/itemswidgets.py	2005-02-19 00:18:08 UTC (rev 29217)
@@ -309,8 +309,7 @@
         contents.append(self._div('value', self.renderValue(value)))
         contents.append(self._emptyMarker())
 
-        return self._div(self.cssClass, "\n".join(contents),
-                         id=self.name)
+        return self._div(self.cssClass, "\n".join(contents))
 
 
     def _div(self, cssClass, contents, **kw):

Modified: Zope3/trunk/src/zope/app/form/browser/tests/test_itemswidget.py
===================================================================
--- Zope3/trunk/src/zope/app/form/browser/tests/test_itemswidget.py	2005-02-19 00:08:56 UTC (rev 29216)
+++ Zope3/trunk/src/zope/app/form/browser/tests/test_itemswidget.py	2005-02-19 00:18:08 UTC (rev 29217)
@@ -224,7 +224,7 @@
         widget.context.required = False
         self.assertEqual(
             widget(),
-            '<div id="field.choice">\n'
+            '<div>\n'
             '<div class="value">\n'
             '<select name="field.choice" size="%i" >\n'
             '<option value="">(no value)</option>\n'

Modified: Zope3/trunk/src/zope/app/form/browser/tests/test_selectwidget.py
===================================================================
--- Zope3/trunk/src/zope/app/form/browser/tests/test_selectwidget.py	2005-02-19 00:08:56 UTC (rev 29216)
+++ Zope3/trunk/src/zope/app/form/browser/tests/test_selectwidget.py	2005-02-19 00:18:08 UTC (rev 29217)
@@ -39,7 +39,7 @@
         return SelectWidget(sequence, choice.vocabulary, request) 
 
 
-select_html = '''<div id="field.terms">
+select_html = '''<div>
 <div class="value">
 <select name="field.terms" size="5" >
 <option value="&lt; foo">&lt; foo</option>



More information about the Zope3-Checkins mailing list