[jToolkit-cvs] jToolkit/widgets widgets.py,1.18,1.19
Brought to you by:
davidfraser,
friedelwolff
From: <dav...@us...> - 2004-02-10 08:42:35
|
Update of /cvsroot/jtoolkit/jToolkit/widgets In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20623 Modified Files: widgets.py Log Message: made spaces in Links get escaped (otherwise Netscape 1.4 ignores the rest of the URL) Index: widgets.py =================================================================== RCS file: /cvsroot/jtoolkit/jToolkit/widgets/widgets.py,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** widgets.py 10 Feb 2004 08:34:45 -0000 1.18 --- widgets.py 10 Feb 2004 08:39:22 -0000 1.19 *************** *** 203,206 **** --- 203,210 ---- self.overrideattribs(newattribs) + def escape(self, s, quote=None): + """Replace special characters &, <, >, add and handle quotes if asked""" + return ContentWidget.escape(self, s, quote).replace(" ", "%20") + class Tooltip(ContentWidget): def __init__(self, tooltip, contents, newattribs={}): |