Message1166
Logged In: YES
user_id=6405
Oops, sorry, forgot to leave a comment here when I last visited the
issue.
I've added quoting methods to the "utils" object in the TALES
namespace. That means:
url_quote quote some text as safe for a URL (ie. space, %, ...)
html_quote quote some text as safe in HTML (ie. <, >, ...)
You use these as "python:utils.url_quote(file.name)".
To get the benefit of these methods without running CVS HEAD, add this
to your tracker's interfaces.py TemplatingUtils class:
def url_quote(self, url):
'''URL-quote the supplied text.'''
import urllib
return urllib.quote(url)
def html_quote(self, html):
'''HTML-quote the supplied text.'''
import cgi
return cgi.escape(url)
|
|
Date |
User |
Action |
Args |
2009-02-03 14:20:38 | admin | link | issue927745 messages |
2009-02-03 14:20:38 | admin | create | |
|