[Zope3-checkins] CVS: Zope3/src/zope/app/browser/form - widget.py:1.21
Steve Alexander
steve@cat-box.net
Thu, 6 Mar 2003 11:20:14 -0500
Update of /cvs-repository/Zope3/src/zope/app/browser/form
In directory cvs.zope.org:/tmp/cvs-serv20488/src/zope/app/browser/form
Modified Files:
widget.py
Log Message:
css names can't contain the _ character.
=== Zope3/src/zope/app/browser/form/widget.py 1.20 => 1.21 ===
--- Zope3/src/zope/app/browser/form/widget.py:1.20 Fri Feb 28 09:24:41 2003
+++ Zope3/src/zope/app/browser/form/widget.py Thu Mar 6 11:20:11 2003
@@ -681,14 +681,14 @@
cssClass = kw['cssClass']
del kw['cssClass']
- # If the 'type' attribute is given, append this plus '_type' as a
+ # If the 'type' attribute is given, append this plus 'Type' as a
# css class. This allows us to do subselector stuff in css without
# necessarily having a browser that supports css subselectors.
# This is important if you want to style radio inputs differently than
# text inputs.
cssWidgetType = kw.get('type')
if cssWidgetType:
- cssWidgetType += '_type'
+ cssWidgetType += 'Type'
else:
cssWidgetType = ''
if cssWidgetType or cssClass: