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): ...@@ -524,21 +524,22 @@ class SimulationMovement(Movement):
return None return None
# XXX FIXME Use a interaction workflow instead # 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 # The call to activate() must be done after actual call to
# setDelivery() on the movement, # setDelivery() on the movement,
# but activate() must be called on the previous delivery... # but activate() must be called on the previous delivery...
def _setDelivery(self, value): #def _setDelivery(self, value):
LOG('setDelivery before', 0, '') # LOG('setDelivery before', 0, '')
delivery_value = self.getDeliveryValue() # delivery_value = self.getDeliveryValue()
Movement.setDelivery(value) # Movement.setDelivery(value)
LOG('setDelivery', 0, '') # LOG('setDelivery', 0, '')
if delivery_value is not None: # if delivery_value is not None:
LOG('delivery_value = ', 0, repr(delivery_value)) # LOG('delivery_value = ', 0, repr(delivery_value))
activity = delivery_value.activate( # activity = delivery_value.activate(
activity='SQLQueue', # activity='SQLQueue',
after_path_and_method_id=( # after_path_and_method_id=(
self.getPath(), # self.getPath(),
['immediateReindexObject', # ['immediateReindexObject',
'recursiveImmediateReindexObject'])) # 'recursiveImmediateReindexObject']))
activity.edit() # 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