-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Konstantin E. Steuck wrote: > Dieter Maurer wrote: > >> "WorkflowTool.getInfoFor" is the method designed to access >> workflow variables. > > Thanks for your reply. > Well, it doesn't work either. Whenever I put > 'python:state_change.workflow.getInfoFor(here, 'state')' into guard > expression it says > -- > Unauthorized: You are not allowed to access 'getInfoFor' in this context
You should be able to use 'sci.getHistory(){0]' to get access to the most recent values of the variables. Or you could add a PythonScript to the workflow, give it the 'Manager' proxy role, and call it from your expression (which is my usual practice). Tres. - -- =============================================================== Tres Seaver [EMAIL PROTECTED] Zope Corporation "Zope Dealers" http://www.zope.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCe3z5GqWXf00rNCgRAiuxAJ9SDWFpS94zvSlTOWceTyNx12twlACeOonf fxO9oAo95Mv6xKJPQVl1nA0= =5LVm -----END PGP SIGNATURE----- _______________________________________________ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests