Commit 5ad89027 authored by Jérome Perrin's avatar Jérome Perrin

add tpValues for easier debugging with left pane of the ZMI


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3671 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5ce9994c
......@@ -69,6 +69,10 @@ class AppliedRule(XMLObject):
, PropertySheet.AppliedRule
)
def tpValues(self) :
""" show the content in the left pane of the ZMI """
return self.objectValues()
security.declareProtected(Permissions.AccessContentsInformation, 'getCausalityState')
def getCausalityState(self, id_only=1):
"""
......
......@@ -113,7 +113,11 @@ class SimulationMovement(Movement):
, PropertySheet.TransformedResource
, PropertySheet.AppliedRule
)
def tpValues(self) :
""" show the content in the left pane of the ZMI """
return self.objectValues()
# Price should be acquired
security.declareProtected(Permissions.AccessContentsInformation, 'getPrice')
def getPrice(self, context=None, REQUEST=None, **kw):
......
......@@ -100,6 +100,10 @@ class SimulationTool (BaseTool):
meta_types.append(meta_type)
return meta_types
def tpValues(self) :
""" show the content in the left pane of the ZMI """
return self.objectValues()
def solveDelivery(self, delivery, dsolver_name, tsolver_name, **kw):
"""
Solve a delivery by calling DeliverySolver and TargetSolver
......
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