Commit 2f9690c3 authored by Guillaume Michon's avatar Guillaume Michon

Commented _setDelivery (it was used by the previous version of immobilisation system)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5893 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a12f451d
......@@ -524,21 +524,22 @@ class SimulationMovement(Movement):
return None
# XXX FIXME Use a interaction workflow instead
# XXX This behavior is now done by simulation_movement_interaction_workflow
# The call to activate() must be done after actual call to
# setDelivery() on the movement,
# but activate() must be called on the previous delivery...
def _setDelivery(self, value):
LOG('setDelivery before', 0, '')
delivery_value = self.getDeliveryValue()
Movement.setDelivery(value)
LOG('setDelivery', 0, '')
if delivery_value is not None:
LOG('delivery_value = ', 0, repr(delivery_value))
activity = delivery_value.activate(
activity='SQLQueue',
after_path_and_method_id=(
self.getPath(),
['immediateReindexObject',
'recursiveImmediateReindexObject']))
activity.edit()
#def _setDelivery(self, value):
# LOG('setDelivery before', 0, '')
# delivery_value = self.getDeliveryValue()
# Movement.setDelivery(value)
# LOG('setDelivery', 0, '')
# if delivery_value is not None:
# LOG('delivery_value = ', 0, repr(delivery_value))
# activity = delivery_value.activate(
# activity='SQLQueue',
# after_path_and_method_id=(
# self.getPath(),
# ['immediateReindexObject',
# 'recursiveImmediateReindexObject']))
# activity.edit()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment