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
70bc55dd
Commit
70bc55dd
authored
Nov 28, 2003
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use new getRoles function to get object roles, rather than using
__roles__ attribute.
parent
15570b8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
lib/python/OFS/Traversable.py
lib/python/OFS/Traversable.py
+4
-3
No files found.
lib/python/OFS/Traversable.py
View file @
70bc55dd
...
...
@@ -12,8 +12,8 @@
##############################################################################
'''This module implements a mix-in for traversable objects.
$Id: Traversable.py,v 1.2
1 2003/09/29 12:34:38 andreasjung
Exp $'''
__version__
=
'$Revision: 1.2
1
$'
[
11
:
-
2
]
$Id: Traversable.py,v 1.2
2 2003/11/28 16:45:44 jim
Exp $'''
__version__
=
'$Revision: 1.2
2
$'
[
11
:
-
2
]
from
Acquisition
import
Acquired
,
aq_inner
,
aq_parent
,
aq_base
...
...
@@ -91,7 +91,8 @@ class Traversable:
# If the path starts with an empty string, go to the root first.
pop
()
self
=
self
.
getPhysicalRoot
()
if
(
restricted
and
not
securityManager
.
validateValue
(
self
)):
if
(
restricted
and
not
securityManager
.
validate
(
None
,
None
,
None
,
self
)):
raise
Unauthorized
,
name
try
:
...
...
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