[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces/browser - form.py:1.13

Stuart Bishop zen@shangri-la.dropbear.id.au
Mon, 14 Jul 2003 11:29:07 -0400


Update of /cvs-repository/Zope3/src/zope/app/interfaces/browser
In directory cvs.zope.org:/tmp/cvs-serv24906/src/zope/app/interfaces/browser

Modified Files:
	form.py 
Log Message:
- Make Widget validation errors humanly readable, it a half-arsed sort of way.
  Widgets have spawned an 'error' attribute, set by getData.
- Display validation errors next to the dud input in Widget.row()
- Make description a tooltip of a Widget's label. This is currently done
  by abusing the <acronym> tag.
- addwizard and editwizard work again with the recent editview changes



=== Zope3/src/zope/app/interfaces/browser/form.py 1.12 => 1.13 ===
--- Zope3/src/zope/app/interfaces/browser/form.py:1.12	Fri Jun 20 02:42:44 2003
+++ Zope3/src/zope/app/interfaces/browser/form.py	Mon Jul 14 11:28:32 2003
@@ -95,10 +95,12 @@
         """Render a label tag"""
 
     def row():
-        """Render the widget as two div elements, for the label and the field.
+        """Render the widget as two or three div elements, 
+           for the label, the field and possibly the validation error
 
         For example:
           <div class="label">label</div><div class="field">field</div>
+          <div class="error">Validation error message</div>
         """