Commit cd3da3f9 authored by Jean-Paul Smets's avatar Jean-Paul Smets

remove getSimulationState (implemented by aq_dynamic)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2353 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8a391f26
......@@ -232,15 +232,6 @@ class Delivery(XMLObject):
, PropertySheet.Reference
)
security.declareProtected(Permissions.AccessContentsInformation, 'getSimulationState')
def getSimulationState(self, id_only=1):
"""
Returns the current state in simulation
"""
portal_workflow = getToolByName(self, 'portal_workflow')
wf = portal_workflow.getWorkflowById('delivery_workflow')
return wf._getWorkflowStateOf(self, id_only=id_only )
security.declareProtected(Permissions.ModifyPortalContent, 'expand')
def expand(self, applied_rule_id,force=0,**kw):
"""
......
......@@ -130,9 +130,6 @@ une liste de mouvements..."""
Returns the current state in simulation
"""
return 'delivered' # For now, consider that Inventory has no workflow XXX
portal_workflow = getToolByName(self, 'portal_workflow')
wf = portal_workflow.getWorkflowById('delivery_workflow')
return wf._getWorkflowStateOf(self, id_only=id_only )
# This should be put in a mix in or at least Delivery should become base class for inventory
security.declareProtected(Permissions.AccessContentsInformation, 'getDeliveryUid')
......
......@@ -72,15 +72,6 @@ class Order(Delivery):
# Nothing to do
self._createOrderRule()
security.declareProtected(Permissions.AccessContentsInformation, 'getSimulationState')
def getSimulationState(self, id_only=1):
"""
Returns the current state in simulation
"""
portal_workflow = getToolByName(self, 'portal_workflow')
wf = portal_workflow.getWorkflowById('order_workflow')
return wf._getWorkflowStateOf(self, id_only=id_only )
security.declareProtected(Permissions.AccessContentsInformation, 'isAccountable')
def isAccountable(self):
"""
......
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