[Zope-CMF] Help with a DCWorkflow guard

Andrew Veitch andrew at logicalprogression.net
Tue Feb 17 07:13:16 EST 2004


>> 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.

> You guard then looks similar to:
> 
>   python: member != portal.portal_workflow.getInfoFor(object,'Actor')

Dieter -

Thank you very much.

For the list archives, the final code that did it was:

python: user.getUserName() != container.portal_workflow.getInfoFor(here,
'actor')

Andrew




More information about the Zope-CMF mailing list