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

API to access default values of configuration properties

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31769 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 64ca0fd6
......@@ -69,3 +69,34 @@ class SolverTypeInformation(ERP5TypeInformation):
"""
# XXX real implementation is needed.
return configuration_property_id_list
def getDefaultConfigurationPropertyDict(self, configurable):
"""
Returns a dictionary of default properties for specified
configurable object
(implementation)
configurable -- a configurable document (Solver Decision
or Target Solver)
"""
# Implemented through type based method
# and using read transaction cache
def getDefaultConfigurationPropertyList(self, id, configurable):
"""
Returns a list of possible values for a given property
(public API)
configurable -- a configurable document (Solver Decision
or Target Solver)
"""
def getDefaultConfigurationProperty(self, id, configurable):
"""
Returns the default value for a given property
(public API)
configurable -- a configurable document (Solver Decision
or Target Solver)
"""
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