[Zope-CMF] DCWorkflow scripts

Florent Guillaume fg@nuxeo.com
14 Aug 2001 17:17:42 GMT


I'm having a few problems using scripts in DCWorkflow:

- In scripts called from guard expression, it seems I'm not
  able to call other scripts, using container.otherscript
  for example. How can I do it ? For now I use the following
  workaround:
   expr: myscript(object, othescript)
  and the script "myscript" has for parameter list
   "object, scripttocall" thus I can call my other script.

- In scripts executed during a transition, I can't seem
  to access directly the names "object", "workflow",
  "transition", etc. through "context". However I found that this
  kind of script takes a mandatory "accessor" argument, which can access
  these names. Shouldn't I be able to access the from "context"
  instead, and not have to take the "accessor" argument ?

Thanks,

Florent Guillaume
Nuxeo