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
90182aad
Commit
90182aad
authored
Aug 17, 1999
by
Michel Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added Amos' creator method
parent
c7348640
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
lib/python/Products/ZCatalog/CatalogAwareness.py
lib/python/Products/ZCatalog/CatalogAwareness.py
+5
-8
No files found.
lib/python/Products/ZCatalog/CatalogAwareness.py
View file @
90182aad
...
...
@@ -129,14 +129,11 @@ class CatalogAware:
"""Return a sequence of user names who have the local
Owner role on an object. The name creator is used
for this method to conform to Dublin Core."""
parent
=
self
.
aq_parent
roles
=
parent
.
aq_acquire
(
'__ac_local_roles__'
)
dict
=
roles
or
{}
#parent.__ac_local_roles__ or {}
items
=
[]
for
key
,
val
in
dict
.
items
():
if
'Owner'
in
val
:
items
.
append
(
key
)
return
string
.
join
(
items
,
', '
)
users
=
[]
for
user
,
roles
in
self
.
get_local_roles
():
if
'Owner'
in
roles
:
users
.
append
(
user
)
return
string
.
join
(
users
,
', '
)
def
onDeleteObject
(
self
):
"""Object delete handler. I think this is obsoleted by
...
...
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