[Zope-CMF] Re: DCWorkflow using workflow variables in guards expressions

Tres Seaver tseaver at zope.com
Fri May 6 10:19:37 EDT 2005


-----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                                tseaver at zope.com
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-----



More information about the Zope-CMF mailing list