[Erp5-report] r42262 seb - /erp5/trunk/products/ERP5/Document/PythonScript.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Jan 12 13:16:41 CET 2011


Author: seb
Date: Wed Jan 12 13:16:40 2011
New Revision: 42262

URL: http://svn.erp5.org?rev=42262&view=rev
Log:
make sure to compile if parameters are changed

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

Modified: erp5/trunk/products/ERP5/Document/PythonScript.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/PythonScript.py?rev=42262&r1=42261&r2=42262&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/PythonScript.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/PythonScript.py [utf8] Wed Jan 12 13:16:40 2011
@@ -98,6 +98,13 @@ class PythonScript(XMLObject, ZopePython
       """
       self.write(value)
 
+    def _setParameterSignature(self, value):
+      """
+      override to call ZopePythonScript methods to force compiling code
+      """
+      self._baseSetParameterSignature(value)
+      self._compile()
+
     def _setProxyRoleList(self, value):
       """
       override to call ZopePythonScript methods



More information about the Erp5-report mailing list