[Zope-CMF] Help with a DCWorkflow guard
robert rottermann
robert at redcor.ch
Fri Feb 20 00:32:35 EST 2004
This sould not be hard
with someting like
object.portal_workflow.getTransitionsFor(target, here)"[0] ['actor']
you get the name of the last one that did change the state,
and member.getUserName() gives you the name of the logged in user.
so the condition sould be (untested):
python: object.portal_workflow.getTransitionsFor(target, here)"[0]
['actor'] != member.getUserName()
Robert
Andrew Veitch wrote:
>This is probably really simple but I'm just not seeing it!
>
>I want a reviewer to be able to publish an object, as long as he's a
>different person from the submitter.
>
>So I need a guard expression on my publish transition that checks that user
>wasn't the submitter.
>
>I thought this would be a FAQ but I can't see it anywhere.
>
>Thanks
>
>Andrew
>
>
>_______________________________________________
>Zope-CMF maillist - Zope-CMF at zope.org
>http://mail.zope.org/mailman/listinfo/zope-cmf
>
>See http://collector.zope.org/CMF for bug reports and feature requests
>
>
>
>
More information about the Zope-CMF
mailing list