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
005b17f1
Commit
005b17f1
authored
Nov 04, 2003
by
Evan Simpson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Collector #616: Make CONTEXTS available to TALES Python expressions.
parent
2133b2e8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
doc/CHANGES.txt
doc/CHANGES.txt
+2
-0
lib/python/Products/PageTemplates/PythonExpr.py
lib/python/Products/PageTemplates/PythonExpr.py
+2
-2
No files found.
doc/CHANGES.txt
View file @
005b17f1
...
@@ -33,6 +33,8 @@ Zope Changes
...
@@ -33,6 +33,8 @@ Zope Changes
(such as storages, databases, or logging handlers) to be used.
(such as storages, databases, or logging handlers) to be used.
Bugs fixed
Bugs fixed
- Collector #616: Make CONTEXTS available to TALES Python expressions.
- Collector #1074: Give Script execution context a __name__
- Collector #1074: Give Script execution context a __name__
- Collector #1095: Allow TAL paths starting with '/varname' as a
- Collector #1095: Allow TAL paths starting with '/varname' as a
...
...
lib/python/Products/PageTemplates/PythonExpr.py
View file @
005b17f1
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
"""Generic Python Expression Handler
"""Generic Python Expression Handler
"""
"""
__version__
=
'$Revision: 1.1
1
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
2
$'
[
11
:
-
2
]
from
TALES
import
CompilerError
from
TALES
import
CompilerError
from
sys
import
exc_info
from
sys
import
exc_info
...
@@ -45,7 +45,7 @@ class PythonExpr:
...
@@ -45,7 +45,7 @@ class PythonExpr:
def
_bind_used_names
(
self
,
econtext
,
_marker
=
[]):
def
_bind_used_names
(
self
,
econtext
,
_marker
=
[]):
# Bind template variables
# Bind template variables
names
=
{}
names
=
{
'CONTEXTS'
:
econtext
.
contexts
}
vars
=
econtext
.
vars
vars
=
econtext
.
vars
getType
=
econtext
.
getCompiler
().
getTypes
().
get
getType
=
econtext
.
getCompiler
().
getTypes
().
get
for
vname
in
self
.
_f_varnames
:
for
vname
in
self
.
_f_varnames
:
...
...
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