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
dc96ef28
Commit
dc96ef28
authored
Jul 12, 2012
by
Patrick Gerken
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not assume that you can iterate over a publishable object
parent
ab6b6941
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
doc/CHANGES.rst
doc/CHANGES.rst
+2
-0
src/ZPublisher/BaseRequest.py
src/ZPublisher/BaseRequest.py
+2
-1
No files found.
doc/CHANGES.rst
View file @
dc96ef28
...
@@ -14,6 +14,8 @@ http://docs.zope.org/zope2/releases/.
...
@@ -14,6 +14,8 @@ http://docs.zope.org/zope2/releases/.
- AccessControl = 2.13.8
- AccessControl = 2.13.8
- ZPublisher: Do not assume that you can iterate over a publishable object
2.13.15 (2012-06-22)
2.13.15 (2012-06-22)
--------------------
--------------------
...
...
src/ZPublisher/BaseRequest.py
View file @
dc96ef28
...
@@ -541,7 +541,8 @@ class BaseRequest:
...
@@ -541,7 +541,8 @@ class BaseRequest:
hasattr
(
parents
[
1
],
'aq_base'
)
and
hasattr
(
parents
[
1
],
'aq_base'
)
and
not
hasattr
(
parents
[
1
],
'__bobo_traverse__'
)):
not
hasattr
(
parents
[
1
],
'__bobo_traverse__'
)):
base
=
parents
[
1
].
aq_base
base
=
parents
[
1
].
aq_base
if
not
(
hasattr
(
base
,
entry_name
)
or
entry_name
in
base
):
if
not
(
hasattr
(
base
,
entry_name
)
or
(
hasattr
(
entry_name
,
'__iter__'
)
and
entry_name
in
base
)):
raise
AttributeError
(
entry_name
)
raise
AttributeError
(
entry_name
)
# After traversal post traversal hooks aren't available anymore
# After traversal post traversal hooks aren't available anymore
...
...
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