quixote/form widget.py,1.43,1.44
Greg Ward <gward-fVcApmY9cLvQ3/1i3zOLAti2O/[email protected]> Mon, 18 Nov 2002 17:22:01 -0500
| Newsgroups | gmane.comp.web.quixote.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /home/cvs/quixote/form
In directory hewson:/tmp/cvs-serv12398/form
Modified Files:
widget.py
Log Message:
Restore the 'wrap' attribute to TextWidget. It's not standard, but can
be useful when the browser supports it. Users who want strict XHTML
compliance should not use it.
Index: widget.py
===================================================================
RCS file: /home/cvs/quixote/form/widget.py,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- widget.py 11 Nov 2002 17:24:39 -0000 1.43
+++ widget.py 18 Nov 2002 22:21:58 -0000 1.44
@@ -193,15 +193,18 @@
widget_type = "text"
def __init__ (self, name, value=None,
- cols=None, rows=None):
+ cols=None, rows=None,
+ wrap=None):
Widget.__init__(self, name, value)
self.cols = cols
self.rows = rows
+ self.wrap = wrap
def render (self, request):
return (htmltag("textarea", name=self.name,
cols=self.cols,
- rows=self.rows) +
+ rows=self.rows,
+ wrap=self.wrap) +
htmlescape(self.value or "") +
htmltext("</textarea>"))