Commit 2c028728 authored by Rafael Monnerat's avatar Rafael Monnerat

Move methods to private.

Move methods to Private, this methods should be used only as internal
calls on ERP5.
parent ed521c0a
...@@ -292,20 +292,17 @@ class IntrospectionTool(LogMixin, BaseTool): ...@@ -292,20 +292,17 @@ class IntrospectionTool(LogMixin, BaseTool):
cache_factory='erp5_content_long') cache_factory='erp5_content_long')
return cached_loadExternalConfig() return cached_loadExternalConfig()
security.declareProtected(Permissions.ManagePortal, '_getSoftwareHome')
def _getSoftwareHome(self):
""" """
security.declareProtected(Permissions.ManagePortal, 'getSoftwareHome')
def getSoftwareHome(self):
"""
EXPERIMENTAL - DEVELOPMENT
Get the value of SOFTWARE_HOME for zopectl startup script Get the value of SOFTWARE_HOME for zopectl startup script
or from zope.conf (whichever is most relevant) or from zope.conf (whichever is most relevant)
""" """
return getConfiguration().softwarehome return getConfiguration().softwarehome
security.declareProtected(Permissions.ManagePortal, 'getPythonExecutable') security.declareProtected(Permissions.ManagePortal, '_getPythonExecutable')
def getPythonExecutable(self): def _getPythonExecutable(self):
""" """
Get the value of PYTHON for zopectl startup script Get the value of PYTHON for zopectl startup script
or from zope.conf (whichever is most relevant) or from zope.conf (whichever is most relevant)
...@@ -353,8 +350,8 @@ class IntrospectionTool(LogMixin, BaseTool): ...@@ -353,8 +350,8 @@ class IntrospectionTool(LogMixin, BaseTool):
# config_file.close() # config_file.close()
# return # return
security.declareProtected(Permissions.ManagePortal, 'getProductPathList') security.declareProtected(Permissions.ManagePortal, '_getProductPathList')
def getProductPathList(self): def _getProductPathList(self):
""" """
Get the value of SOFTWARE_HOME for zopectl startup script Get the value of SOFTWARE_HOME for zopectl startup script
or from zope.conf (whichever is most relevant) or from zope.conf (whichever is most relevant)
......
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