[Zope-CMF] guard expression on workflow transition

Marie ROBICHON robichon at esrf.fr
Tue Dec 18 10:31:44 EST 2007


Hi,

I have a custom archetype for a seminar announcement.  When published
this announcement runs a script to send an email to a mailing list. I
have added to this content type a multiselection widget of checkboxes
(called modified_element) enabling the user to indicate significant
changes to this announcement, and a workflow transition which will send
the email again announcing the changes (date, time etc.)

I would like to add a guard expression to this transition such that it
is available only when the user has actually checked a box in the
multiselection widget.

I have tried:

python:len(here.getModified_element())>0

but the workflow transition is still available in the dropdown.

I have updated the security settings.

Your help would be gratefully appreciated.

Thanks in advance

Marie


-------------- next part --------------
A non-text attachment was scrubbed...
Name: robichon.vcf
Type: text/x-vcard
Size: 277 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope-cmf/attachments/20071218/aee1b8ba/robichon.vcf


More information about the Zope-CMF mailing list