Commit 9e8e13db authored by Romain Courteaud's avatar Romain Courteaud

Remove applyTargetSolver method.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3151 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 76504c3a
...@@ -232,10 +232,10 @@ class DeliveryCell(MappedValue, Movement): ...@@ -232,10 +232,10 @@ class DeliveryCell(MappedValue, Movement):
self.setTargetQuantity(quantity) self.setTargetQuantity(quantity)
security.declareProtected(Permissions.ModifyPortalContent, 'applyTargetSolver') # security.declareProtected(Permissions.ModifyPortalContent, 'applyTargetSolver')
def applyTargetSolver(self, solver): # def applyTargetSolver(self, solver):
for my_simulation_movement in self.getDeliveryRelatedValueList(portal_type = 'Simulation Movement'): # for my_simulation_movement in self.getDeliveryRelatedValueList(portal_type = 'Simulation Movement'):
self.portal_simulation.applyTargetSolver(my_simulation_movement, solver) # self.portal_simulation.applyTargetSolver(my_simulation_movement, solver)
# Required for indexing # Required for indexing
security.declareProtected(Permissions.AccessContentsInformation, 'getInventoriatedQuantity') security.declareProtected(Permissions.AccessContentsInformation, 'getInventoriatedQuantity')
...@@ -296,8 +296,8 @@ class DeliveryCell(MappedValue, Movement): ...@@ -296,8 +296,8 @@ class DeliveryCell(MappedValue, Movement):
""" """
MappedValue._edit(self, REQUEST=REQUEST, force_update = force_update, MappedValue._edit(self, REQUEST=REQUEST, force_update = force_update,
reindex_object=reindex_object, **kw) reindex_object=reindex_object, **kw)
if self.isSimulated(): # if self.isSimulated():
self.getRootDeliveryValue().activate().propagateResourceToSimulation() # self.getRootDeliveryValue().activate().propagateResourceToSimulation()
# This one must be the last # This one must be the last
if kw.has_key('item_id_list'): if kw.has_key('item_id_list'):
self._setItemIdList( kw['item_id_list'] ) self._setItemIdList( kw['item_id_list'] )
......
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