[Zope-CMF] ObjectMoved exception
Florent Guillaume
fg@nuxeo.com
Mon, 22 Apr 2002 16:06:02 +0000 (UTC)
> Can anyone explain the third argument to the __init__ function of the
> ObjectMoved exception class that is defined in
> Products/DCWorkflow/WorkflowCore.py? Here is the code:
A workflow transition (doActionFor) can return a value. If you raise an
ObjectMoved exception, you can still return a value using this "result"
argument.
See how it's used in CMFCore.WorkflowTool._invokeWithNotification.
If you don't use this feature, you can just ignore it.
Florent
--
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87 http://nuxeo.com mailto:fg@nuxeo.com