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
d88cd0e7
Commit
d88cd0e7
authored
Oct 19, 2001
by
Amos Latteier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Finished documenting modules that you can use from Python expressions.
parent
51b2fe8b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
22 deletions
+19
-22
lib/python/Products/PageTemplates/help/tales-python.stx
lib/python/Products/PageTemplates/help/tales-python.stx
+19
-22
No files found.
lib/python/Products/PageTemplates/help/tales-python.stx
View file @
d88cd0e7
...
...
@@ -4,7 +4,7 @@ TALES Python expressions
Python expression syntax::
a
ny valid Python language expression
A
ny valid Python language expression
Description
...
...
@@ -51,26 +51,25 @@ TALES Python expressions
Finally, these functions are available in Python expressions,
but not in Python-based scripts:
'path(string)' -- Evaluate a TALES "path":tales-path.stx
'path(string)' -- Evaluate a TALES "path":
../
tales-path.stx
expression.
'string(string)' -- Evaluate a TALES "string":tales-string.stx
'string(string)' -- Evaluate a TALES "string":
../
tales-string.stx
expression.
'exists(string)' -- Evaluates a TALES "exists":tales-exists.stx
'exists(string)' -- Evaluates a TALES "exists":
../
tales-exists.stx
expression.
'nocall(string)' -- Evaluates a TALES "nocall":tales-nocall.stx
'nocall(string)' -- Evaluates a TALES "nocall":
../
tales-nocall.stx
expression.
Python Modules
A number of Python modules are available by default. You can
make more modules available. See XXX for more information. You
can access modules either via path expressions (for example
'modules/string/join') or in Python with the 'modules' mapping
object (for example 'modules["string"].join'). Here are the
default modules:
make more modules available. You can access modules either via
path expressions (for example 'modules/string/join') or in
Python with the 'modules' mapping object (for example
'modules["string"].join'). Here are the default modules:
'string' -- The standard "Python string
module":http://www.python.org/doc/current/lib/module-string.html. Note:
...
...
@@ -83,24 +82,22 @@ TALES Python expressions
'math' -- The standard "Python math
module":http://www.python.org/doc/current/lib/module-math.html.
'sequence' -- A module with a powerful sorting function. See
XXX
for more information.
'sequence' -- A module with a powerful sorting function. See
"sequence":../../../OFSP/Help/sequence.py
for more information.
'Products.PythonScripts.standard' -- Various HTML formatting
functions available in DTML. See XXX for more information.
'ZPTUtils.Batch' -- Batch processing facilities similar to those
offered by 'dtml-in'. See XXX for more information.
functions available in DTML. See
"Products.PythonScripts.standard":../../../OFSP/Help/standard.py
for more information.
'ZTUtils.Tree' -- Tree processing facilities similar to those
offered by 'dtml-tree'. See XXX for more information.
'ZTUtils' -- Batch processing facilities similar to those
offered by 'dtml-in'. See "ZTUtils":../../../OFSP/Help/ZTUtils.py
for more information.
'
ZTUtils.SimpleTree' -- Simplified tree processing facilities
similar to those offered by 'dtml-tree'. See XXX
for more
'
AccessControl' -- Security and access checking facilities. See
"AccessControl":../../../OFSP/Help/AccessControl.py
for more
information.
'AccessControl.XXX' -- XXX what is available from this package?
Examples
Basic module usage::
...
...
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