File contents
--- DT_Var.py.orig Tue Mar 14 23:34:53 2000
+++ DT_Var.py Tue Mar 14 23:34:15 2000
@@ -190,6 +190,9 @@
quotes. This is needed to safely include values in
Standard Query Language (SQL) strings.
+ 'script_quote' -- Escapes all characters that would break
+ script strings.
+
'newline_to_br' -- Convert newlines and carriage-return and
newline combinations to break tags.
@@ -220,7 +223,7 @@
__rcs_id__='$Id: DT_Var.py,v 1.34.4.1 1999/12/13 18:14:51 jim Exp $'
__version__='$Revision: 1.34.4.1 $'[11:-2]
-from DT_Util import parse_params, name_param, html_quote, str
+from DT_Util import parse_params, name_param, html_quote, str, script_quote
import regex, string, sys, regex
from string import find, split, join, atoi, rfind
from urllib import quote, quote_plus
@@ -236,7 +239,7 @@
size=0, etc='...', thousands_commas=1,
html_quote=1, url_quote=1, sql_quote=1,
url_quote_plus=1, missing='',
- newline_to_br=1, url=1)
+ newline_to_br=1, url=1, script_quote=1)
self.args=args
self.modifiers=tuple(
@@ -442,7 +445,7 @@
modifiers=(html_quote, url_quote, url_quote_plus, newline_to_br,
string.lower, string.upper, string.capitalize, spacify,
- thousands_commas, sql_quote)
+ thousands_commas, sql_quote, script_quote)
modifiers=map(lambda f: (f.__name__, f), modifiers)
class Comment: