[Zope-CMF] Find users with a self-made local role
Lars H. Korte
lk@ordix.de
Fri, 11 Oct 2002 11:40:59 +0200
Hi,
We are using the DCWorkflow under Zope2.5.1+CMF1.3+Plone1
We have created some own Roles.
Now we need to get (in Python) the username of a person that has one of
our self-created roles in a speacial context.
I have tried the following, but it seems that this function doesn't
support self-made roles.
leiter = context.portal_membership.users_with_local_role('Leiter')
If I try
leiter = context.portal_membership.users_with_local_role('Owner')
it returns 'superuser', although there is another User with that Role
I need this to notify a person via eMail to inform him that he has to
publish a Document. I want to use this in a python-script after a user
submits a document for review. And our reviewers have the role 'Leiter'.
Can you help me please. If have been working on this problem for quite a
long time, but I didn't succeed.
regards
Lars