Commit 6535ab54 authored by Aurel's avatar Aurel

follow interface definition of checkConsistency method


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37921 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a4b21eac
...@@ -118,7 +118,7 @@ def checkConsistency(self, fixit=0, source_code=None): ...@@ -118,7 +118,7 @@ def checkConsistency(self, fixit=0, source_code=None):
return message_list return message_list
# Add checkConsistency to Python Scripts # 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()) return checkConsistency(self, fixit=fixit, source_code=self.body())
from Products.PythonScripts.PythonScript import PythonScript from Products.PythonScripts.PythonScript import PythonScript
...@@ -126,7 +126,7 @@ PythonScript.checkConsistency= checkPythonScriptConsistency ...@@ -126,7 +126,7 @@ PythonScript.checkConsistency= checkPythonScriptConsistency
PythonScript.checkConsistency__roles__ = ('Manager',) # A hack to protect the method PythonScript.checkConsistency__roles__ = ('Manager',) # A hack to protect the method
# Add checkConsistency to Page Templates # 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()) return checkConsistency(self, fixit=fixit, source_code=self.read())
from Products.PageTemplates.PageTemplate import PageTemplate from Products.PageTemplates.PageTemplate import PageTemplate
......
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