Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
c4b03a4f
Commit
c4b03a4f
authored
Mar 18, 2002
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added new env. var "STX_DEFAULT_LEVEL"
parent
74cd4017
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
4 deletions
+17
-4
doc/CHANGES.txt
doc/CHANGES.txt
+3
-0
doc/ENVIRONMENT.txt
doc/ENVIRONMENT.txt
+8
-0
lib/python/DocumentTemplate/DT_Var.py
lib/python/DocumentTemplate/DT_Var.py
+6
-4
No files found.
doc/CHANGES.txt
View file @
c4b03a4f
...
...
@@ -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
...
...
doc/ENVIRONMENT.txt
View file @
c4b03a4f
...
...
@@ -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
...
...
lib/python/DocumentTemplate/DT_Var.py
View file @
c4b03a4f
...
...
@@ -145,11 +145,11 @@ Evaluating expressions without rendering results
'''
# '
__rcs_id__
=
'$Id: DT_Var.py,v 1.5
0 2002/02/07 17:47:42
andreasjung Exp $'
__version__
=
'$Revision: 1.5
0
$'
[
11
:
-
2
]
__rcs_id__
=
'$Id: DT_Var.py,v 1.5
1 2002/03/18 20:15:27
andreasjung Exp $'
__version__
=
'$Revision: 1.5
1
$'
[
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
=
{}):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment