Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5-Boxiang
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hamza
erp5-Boxiang
Commits
c1918189
Commit
c1918189
authored
Jun 21, 2011
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove commented code.
Introspection tool should not edit zopectl.
parent
2c028728
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
33 deletions
+0
-33
product/ERP5/Tool/IntrospectionTool.py
product/ERP5/Tool/IntrospectionTool.py
+0
-33
No files found.
product/ERP5/Tool/IntrospectionTool.py
View file @
c1918189
...
...
@@ -316,39 +316,6 @@ class IntrospectionTool(LogMixin, BaseTool):
# Not possible get configuration from the zopecl
return
None
#security.declareProtected(Permissions.ManagePortal, 'setPythonExecutable')
#def setPythonExecutable(self, path):
# """
# Set the value of PYTHON for zopectl startup script
# or from zope.conf (whichever is most relevant)
# Rationale: some day Zope will no longer use python2.4
# WARNING: the list of possible path should be protected
# if possible (ex. /etc/erp5/python)
# """
# config = self._loadExternalConfig()
# allowed_path_list = config.get("main", "python").split("\n")
# if path not in allowed_path_list:
# raise Unauthorized("You are setting one Unauthorized path as Python.")
# config_file = self._getZopeConfigurationFile("bin/zopectl")
# new_file_list = []
# for line in config_file:
# if line.startswith("PYTHON="):
# # Only comment the line, so it can easily reverted
# new_file_list.append("#%s" % (line))
# new_file_list.append('PYTHON="%s"\n' % (path))
# else:
# new_file_list.append(line)
# config_file.close()
# # reopen file for write
# config_file = self._getZopeConfigurationFile("bin/zopectl", "w")
# config_file.write("".join(new_file_list))
# config_file.close()
# return
security
.
declareProtected
(
Permissions
.
ManagePortal
,
'_getProductPathList'
)
def
_getProductPathList
(
self
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment