[Erp5-dev] Changing workflow association and restoring document's workflow state
Łukasz Nowak
lukasz.nowak at ventis.com.pl
Fri Oct 26 12:26:45 CEST 2007
Hello,
On 2007-10-26, 12:20:24
Łukasz Nowak <lukasz.nowak at ventis.com.pl> wrote:
> Hello,
>
> On 2007-10-24, 16:43:34
> Jérome Perrin <jerome at nexedi.com> wrote:
>
> (...)
> > Look at workflow_history attribute on document, it's easy to
> > understand how it's structured (with pprint).
> > This http://svn.erp5.org/?view=rev&revision=17171 was to change the
> > state variable name, so it's not exactly the same. If only workflow
> > ID changed, I think you can simply do:
> > ob.workflow_history['new_workflow_id'] =\
> > ob.workflow_history.pop('old_workflow_id')
>
> Is attached extension commit-acceptable?
It is not! Small typo introduced while refactoring. Attached working
version :)
> Regards,
Regards,
> Luke
Luke
--
Łukasz Nowak R&D Ventis http://www.ventis.com.pl/
tel: +48 32 768 16 85 fax: +48 32 392 10 61
``Use the Source, Luke...'' I am only craftsman.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: WorkflowHistoryManage.py
Type: text/x-python
Size: 2860 bytes
Desc: not available
URL: <http://mail.tiolive.com/pipermail/erp5-dev/attachments/20071026/942cd48c/attachment.py>
More information about the Erp5-dev
mailing list