Commit 90182aad authored by Michel Pelletier's avatar Michel Pelletier

added Amos' creator method

parent c7348640
...@@ -129,14 +129,11 @@ class CatalogAware: ...@@ -129,14 +129,11 @@ class CatalogAware:
"""Return a sequence of user names who have the local """Return a sequence of user names who have the local
Owner role on an object. The name creator is used Owner role on an object. The name creator is used
for this method to conform to Dublin Core.""" for this method to conform to Dublin Core."""
parent=self.aq_parent users=[]
roles=parent.aq_acquire('__ac_local_roles__') for user, roles in self.get_local_roles():
dict=roles or {} #parent.__ac_local_roles__ or {} if 'Owner' in roles:
items=[] users.append(user)
for key, val in dict.items(): return string.join(users, ', ')
if 'Owner' in val:
items.append(key)
return string.join(items, ', ')
def onDeleteObject(self): def onDeleteObject(self):
"""Object delete handler. I think this is obsoleted by """Object delete handler. I think this is obsoleted by
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment