[Zope-Checkins] CVS: Zope/lib/python/DocumentTemplate - DT_Var.py:1.51

Andreas Jung andreas@digicool.com
Mon, 18 Mar 2002 15:15:28 -0500


Update of /cvs-repository/Zope/lib/python/DocumentTemplate
In directory cvs.zope.org:/tmp/cvs-serv32587/lib/python/DocumentTemplate

Modified Files:
	DT_Var.py 
Log Message:
added new env. var "STX_DEFAULT_LEVEL"


=== Zope/lib/python/DocumentTemplate/DT_Var.py 1.50 => 1.51 ===
 
 from DT_Util import parse_params, name_param, str
-import string, re,  sys
+import os, string, re,  sys
 from urllib import quote, quote_plus
 from cgi import escape
 from html_quote import html_quote # for import by other modules, dont remove!
@@ -357,7 +357,9 @@
 
     else: txt = str(v)
         
-    return HTML(txt,level=3,header=0)
+    return HTML(txt, 
+                level=int(os.environ.get('STX_DEFAULT_LEVEL',3)),
+                header=0)
         
 
 def sql_quote(v, name='(Unknown name)', md={}):