[Erp5-dev] interaction - old and new value
Jérome Perrin
jerome at nexedi.com
Mon May 19 13:23:59 CEST 2008
Le mercredi 07 mai 2008 à 10:32 +0200, bartek a écrit :
> Hello
>
> Is it possible for an interaction workflow script, triggered by a
> property setter, to access both the old and the new value of the property?
>
> If I need to compare them - script "before" sees the old value, "after"
> sees the new one, and getting the new from request is obviously a very
> bad solution (not to mention that sometimes there is no request). Is
> there a clean way to do it?
Hi,
I've never really tried it myself, but you may find some interesting
information in state_change['kwargs']['workflow_method_args']
Jérome
More information about the Erp5-dev
mailing list