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
219b4214
Commit
219b4214
authored
Aug 09, 2005
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
backport some docstrings from the Zope 3 version
parent
cf2deff3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
lib/python/TAL/TALInterpreter.py
lib/python/TAL/TALInterpreter.py
+32
-0
No files found.
lib/python/TAL/TALInterpreter.py
View file @
219b4214
...
@@ -120,10 +120,42 @@ class AltTALGenerator(TALGenerator):
...
@@ -120,10 +120,42 @@ class AltTALGenerator(TALGenerator):
class
TALInterpreter
:
class
TALInterpreter
:
"""TAL interpreter.
"""
def
__init__
(
self
,
program
,
macros
,
engine
,
stream
=
None
,
def
__init__
(
self
,
program
,
macros
,
engine
,
stream
=
None
,
debug
=
0
,
wrap
=
60
,
metal
=
1
,
tal
=
1
,
showtal
=-
1
,
debug
=
0
,
wrap
=
60
,
metal
=
1
,
tal
=
1
,
showtal
=-
1
,
strictinsert
=
1
,
stackLimit
=
100
,
i18nInterpolate
=
1
):
strictinsert
=
1
,
stackLimit
=
100
,
i18nInterpolate
=
1
):
"""Create a TAL interpreter.
Optional arguments:
stream -- output stream (defaults to sys.stdout).
debug -- enable debugging output to sys.stderr (off by default).
wrap -- try to wrap attributes on opening tags to this number of
column (default: 60).
metal -- enable METAL macro processing (on by default).
tal -- enable TAL processing (on by default).
showtal -- do not strip away TAL directives. A special value of
-1 (which is the default setting) enables showtal when TAL
processing is disabled, and disables showtal when TAL processing is
enabled. Note that you must use 0, 1, or -1; true boolean values
are not supported (TODO: why?).
strictinsert -- enable TAL processing and stricter HTML/XML
checking on text produced by structure inserts (on by default).
Note that Zope turns this value off by default.
stackLimit -- set macro nesting limit (default: 100).
i18nInterpolate -- enable i18n translations (default: on).
"""
self
.
program
=
program
self
.
program
=
program
self
.
macros
=
macros
self
.
macros
=
macros
self
.
engine
=
engine
# Execution engine (aka context)
self
.
engine
=
engine
# Execution engine (aka context)
...
...
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