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
3a4c60ef
Commit
3a4c60ef
authored
Dec 12, 2001
by
Evan Simpson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resync with changed implementation of 'item' in ZTUtils.Iterator.
parent
9850e579
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
lib/python/Products/PageTemplates/Expressions.py
lib/python/Products/PageTemplates/Expressions.py
+3
-3
lib/python/Products/PageTemplates/TALES.py
lib/python/Products/PageTemplates/TALES.py
+2
-2
No files found.
lib/python/Products/PageTemplates/Expressions.py
View file @
3a4c60ef
...
...
@@ -17,7 +17,7 @@ Page Template-specific implementation of TALES, with handlers
for Python expressions, string literals, and paths.
"""
__version__
=
'$Revision: 1.2
8
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.2
9
$'
[
11
:
-
2
]
import
re
,
sys
from
TALES
import
Engine
,
CompilerError
,
_valid_name
,
NAME_RE
,
\
...
...
@@ -25,6 +25,7 @@ from TALES import Engine, CompilerError, _valid_name, NAME_RE, \
from
string
import
strip
,
split
,
join
,
replace
,
lstrip
from
Acquisition
import
aq_base
,
aq_inner
,
aq_parent
_engine
=
None
def
getEngine
():
global
_engine
...
...
@@ -254,11 +255,10 @@ def restrictedTraverse(self, path, securityManager,
raise
Unauthorized
,
name
i
=
1
plen
=
len
(
path
)
REQUEST
=
{
'TraversalRequestNameStack'
:
path
}
validate
=
securityManager
.
validate
object
=
self
while
i
<
plen
:
while
i
<
len
(
path
)
:
__traceback_info__
=
(
path
,
i
)
name
=
path
[
i
]
i
=
i
+
1
...
...
lib/python/Products/PageTemplates/TALES.py
View file @
3a4c60ef
...
...
@@ -15,7 +15,7 @@
An implementation of a generic TALES engine
"""
__version__
=
'$Revision: 1.2
6
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.2
7
$'
[
11
:
-
2
]
import
re
,
sys
,
ZTUtils
from
MultiMapping
import
MultiMapping
...
...
@@ -109,7 +109,7 @@ class Iterator(ZTUtils.Iterator):
def
next
(
self
):
try
:
if
ZTUtils
.
Iterator
.
next
(
self
):
self
.
_context
.
setLocal
(
self
.
name
,
self
.
item
()
)
self
.
_context
.
setLocal
(
self
.
name
,
self
.
item
)
return
1
except
TALESError
:
raise
...
...
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