[Erp5-report] r31769 jp - /erp5/trunk/products/ERP5/Document/SolverTypeInformation.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Jan 15 11:40:07 CET 2010


Author: jp
Date: Fri Jan 15 11:40:06 2010
New Revision: 31769

URL: http://svn.erp5.org?rev=31769&view=rev
Log:
API to access default values of configuration properties

Modified:
    erp5/trunk/products/ERP5/Document/SolverTypeInformation.py

Modified: erp5/trunk/products/ERP5/Document/SolverTypeInformation.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/SolverTypeInformation.py?rev=31769&r1=31768&r2=31769&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/SolverTypeInformation.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/SolverTypeInformation.py [utf8] Fri Jan 15 11:40:06 2010
@@ -69,3 +69,34 @@
     """
     # 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)
+    """




More information about the Erp5-report mailing list