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
788c58ca
Commit
788c58ca
authored
Feb 13, 2001
by
Chris McDonough
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed getobject from using restrictedTraverse to unrestrictedTraverse.
parent
d14e85b1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
14 deletions
+6
-14
lib/python/Products/ZCatalog/ZCatalog.py
lib/python/Products/ZCatalog/ZCatalog.py
+6
-14
No files found.
lib/python/Products/ZCatalog/ZCatalog.py
View file @
788c58ca
...
...
@@ -454,20 +454,12 @@ class ZCatalog(Folder, Persistent, Implicit):
"""
Return a cataloged object given a 'data_record_id_'
"""
try
:
obj
=
self
.
aq_parent
.
restrictedTraverse
(
self
.
getpath
(
rid
))
obj
=
self
.
aq_parent
.
unrestrictedTraverse
(
self
.
getpath
(
rid
))
if
not
obj
:
if
REQUEST
is
None
:
REQUEST
=
self
.
REQUEST
obj
=
self
.
aq_parent
.
resolve_url
(
self
.
getpath
(
rid
),
REQUEST
)
obj
=
self
.
resolve_url
(
self
.
getpath
(
rid
),
REQUEST
)
return
obj
except
'Unauthorized'
:
user
=
getSecurityManager
().
getUser
().
getUserName
()
LOG
(
'ZCatalog'
,
ERROR
,
(
'User %s attempted to retrieve object '
'with record id %s using getobject.'
%
(
user
,
rid
)))
raise
(
'Access to object with record id %s in Catalog denied: '
'unauthorized as %s.'
%
(
rid
,
user
))
def
getMetadataForRID
(
self
,
rid
):
"""return the correct metadata for the cataloged record id"""
...
...
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