[Erp5-report] r16220 - in /erp5/trunk/products/ERP5Type: Base.py patches/WorkflowTool.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Sep 10 14:00:42 CEST 2007
Author: jerome
Date: Mon Sep 10 14:00:42 2007
New Revision: 16220
URL: http://svn.erp5.org?rev=16220&view=rev
Log:
reindex in notifyWorkflowMethod, so that only standard workflow method reindex,
and not interactions.
Modified:
erp5/trunk/products/ERP5Type/Base.py
erp5/trunk/products/ERP5Type/patches/WorkflowTool.py
Modified: erp5/trunk/products/ERP5Type/Base.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Base.py?rev=16220&r1=16219&r2=16220&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Base.py (original)
+++ erp5/trunk/products/ERP5Type/Base.py Mon Sep 10 14:00:42 2007
@@ -205,9 +205,6 @@
except ObjectMoved, ex:
# Re-raise with a different result.
raise ObjectMoved(ex.getNewObject(), result)
- else:
- if getattr(aq_base(instance), 'reindexObject', None) is not None:
- instance.reindexObject()
# Call whatever must be called after changing states
for wf_id, transition_list in valid_transition_item_list:
Modified: erp5/trunk/products/ERP5Type/patches/WorkflowTool.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/patches/WorkflowTool.py?rev=16220&r1=16219&r2=16220&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/patches/WorkflowTool.py (original)
+++ erp5/trunk/products/ERP5Type/patches/WorkflowTool.py Mon Sep 10 14:00:42 2007
@@ -46,6 +46,8 @@
if not self._checkTransitionGuard(tdef, ob):
raise Unauthorized(method_id)
self._changeStateOf(ob, tdef)
+ if getattr(ob, 'reindexObject', None) is not None:
+ ob.reindexObject()
def DCWorkflowDefinition_notifyBefore(self, ob, action, args=None, kw=None, transition_list=None):
'''
More information about the Erp5-report
mailing list