[Zope3-checkins] CVS: Zope3/src/zope/app/browser/form - widget.py:1.11
Steve Alexander
steve@cat-box.net
Thu, 6 Feb 2003 14:23:18 -0500
Update of /cvs-repository/Zope3/src/zope/app/browser/form
In directory cvs.zope.org:/tmp/cvs-serv10287/src/zope/app/browser/form
Modified Files:
widget.py
Log Message:
removed the style attribute that is given by default, as requested
by Alex Limi
=== Zope3/src/zope/app/browser/form/widget.py 1.10 => 1.11 ===
--- Zope3/src/zope/app/browser/form/widget.py:1.10 Mon Jan 20 11:23:37 2003
+++ Zope3/src/zope/app/browser/form/widget.py Thu Feb 6 14:23:15 2003
@@ -200,7 +200,9 @@
displayWidth = 20
displayMaxWidth = ""
extra = ''
- style = "width:100%"
+ # XXX Alex Limi doesn't like this!
+ # style = "width:100%"
+ style = ''
__values = None
def _convert(self, value):
@@ -321,7 +323,8 @@
width = 60
height = 15
extra=""
- style="width:100%"
+ #style="width:100%"
+ style = ''
def _convert(self, value):
if self.context.min_length and not value:
@@ -635,6 +638,11 @@
if kw['cssClass'] != "":
attr_list.append('class="%s"' % kw['cssClass'])
del kw['cssClass']
+
+ if 'style' in kw:
+ if kw['style'] != '':
+ attr_list.append('style="%s"' % kw['style'])
+ del kw['style']
# special case handling for extra 'raw' code
if 'extra' in kw: