Commit c4b03a4f authored by Andreas Jung's avatar Andreas Jung

added new env. var "STX_DEFAULT_LEVEL"

parent 74cd4017
......@@ -51,6 +51,9 @@ Zope Changes
- ICP server support. For more information see
http://www.zope.org/Members/htrd/icp/intro
- STXNG: added new env. variable STX_DEFAULT_LEVEL to change
the default level for <Hx> elements (see doc/ENVIRONMENT.txt)
Bugs:
- Removed spurious 'self' from scarecrow interfaces; updated
......
......@@ -238,6 +238,14 @@ WebDAV
WEBDAV_SOURCE_PORT_CLIENTS="cadaver.*" enables retrieval
of the document source for the Cadaver WebDAV client
Structured Text
STX_DEFAULT_LEVEL
Set this variable to change the default level for <Hx> elements.
The default level is 3.
Esoteric
Z_MAX_STACK_SIZE
......
......@@ -145,11 +145,11 @@ Evaluating expressions without rendering results
''' # '
__rcs_id__='$Id: DT_Var.py,v 1.50 2002/02/07 17:47:42 andreasjung Exp $'
__version__='$Revision: 1.50 $'[11:-2]
__rcs_id__='$Id: DT_Var.py,v 1.51 2002/03/18 20:15:27 andreasjung Exp $'
__version__='$Revision: 1.51 $'[11:-2]
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 @@ def structured_text(v, name='(Unknown name)', md={}):
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={}):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment