[Erp5-report] r37921 aurel - /erp5/trunk/products/ERP5Type/CodingStyle.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Aug 20 09:47:44 CEST 2010


Author: aurel
Date: Fri Aug 20 09:47:44 2010
New Revision: 37921

URL: http://svn.erp5.org?rev=37921&view=rev
Log:
follow interface definition of checkConsistency method

Modified:
    erp5/trunk/products/ERP5Type/CodingStyle.py

Modified: erp5/trunk/products/ERP5Type/CodingStyle.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/CodingStyle.py?rev=37921&r1=37920&r2=37921&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/CodingStyle.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/CodingStyle.py [utf8] Fri Aug 20 09:47:44 2010
@@ -118,7 +118,7 @@ def checkConsistency(self, fixit=0, sour
   return message_list
 
 # Add checkConsistency to Python Scripts
-def checkPythonScriptConsistency(self, fixit=0):
+def checkPythonScriptConsistency(self, fixit=0, filter=None, **kw):
   return checkConsistency(self, fixit=fixit, source_code=self.body())
 
 from Products.PythonScripts.PythonScript import PythonScript
@@ -126,7 +126,7 @@ PythonScript.checkConsistency= checkPyth
 PythonScript.checkConsistency__roles__ = ('Manager',) # A hack to protect the method
 
 # Add checkConsistency to Page Templates
-def checkPageTemplateConsistency(self, fixit=0):
+def checkPageTemplateConsistency(self, fixit=0, filter=None, **kw):
   return checkConsistency(self, fixit=fixit, source_code=self.read())
 
 from Products.PageTemplates.PageTemplate import PageTemplate




More information about the Erp5-report mailing list