[Zope-CMF] DCWorkflow + Acqusition
Victor Safronovich
vsafronovich at naumen.ru
Tue Oct 11 04:04:58 EDT 2005
Hello zope-cmf-dev!
I have a question about DCWorkflow, WorkflowTool and Acqusition.
My object, during change state, move to another folder and should change
acqusition wrapper.
workflow_tool = getToolByName( my_object, 'portal_workflow')
workflow_tool.doActionFor( my_object, 'some_action' )
# during doActionFor raised ObjectMoved but i don`t know about that in here
# because WorkflowTool._invokeWithNotification shallow it.
# so my_object has old acqusition wrapper.
print aq_chain( my_object ) #wrong result
__do_something_with_my_object__
my_object.reindexObject() # my_object reindexed on the wrong path ( old
# path), but my_object has new physical path :(
i think i should subclassing from WorkflowTool and override doActionFor
But how can i repaire wrapper? if i create new wrapper in the
doActionFor, method namespace has old wrapped object.
Or may be i use WorkflowTool wrongly.
--
Best regards,
Victor Safronovich
NauMen.NauDoc.SoftwareDeveloper http://www.naumen.ru
More information about the Zope-CMF
mailing list