[Erp5-report] r14122 - /erp5/trunk/products/ERP5/Tool/SimulationTool.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Apr 19 15:11:47 CEST 2007


Author: romain
Date: Thu Apr 19 15:11:46 2007
New Revision: 14122

URL: http://svn.erp5.org?rev=14122&view=rev
Log:
Cast reserved_kw to a dict.

Modified:
    erp5/trunk/products/ERP5/Tool/SimulationTool.py

Modified: erp5/trunk/products/ERP5/Tool/SimulationTool.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Tool/SimulationTool.py?rev=14122&r1=14121&r2=14122&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Tool/SimulationTool.py (original)
+++ erp5/trunk/products/ERP5/Tool/SimulationTool.py Thu Apr 19 15:11:46 2007
@@ -537,6 +537,10 @@
         else:
           simulation_query = omit_query
       if reserved_kw is not None:
+        if type(reserved_kw) != dict:
+          # Not a dict when taken from URL, so, cast is needed 
+          # to make pop method available
+          reserved_kw = dict(reserved_kw)
         reserved_omit_input = reserved_kw.pop('omit_input',0)
         reserved_omit_output = reserved_kw.pop('omit_output',0)
         reserved_omit_query = self._getOmitQuery(query_table=table,




More information about the Erp5-report mailing list