Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Lu Xu
erp5
Commits
ed521c0a
Commit
ed521c0a
authored
Jun 21, 2011
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused private method
parent
a8cbcca3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
15 deletions
+0
-15
product/ERP5/Tool/IntrospectionTool.py
product/ERP5/Tool/IntrospectionTool.py
+0
-15
No files found.
product/ERP5/Tool/IntrospectionTool.py
View file @
ed521c0a
...
@@ -292,22 +292,7 @@ class IntrospectionTool(LogMixin, BaseTool):
...
@@ -292,22 +292,7 @@ class IntrospectionTool(LogMixin, BaseTool):
cache_factory
=
'erp5_content_long'
)
cache_factory
=
'erp5_content_long'
)
return
cached_loadExternalConfig
()
return
cached_loadExternalConfig
()
security
.
declareProtected
(
Permissions
.
ManagePortal
,
'_getZopeConfigurationFile'
)
def
_getZopeConfigurationFile
(
self
,
relative_path
=
""
,
mode
=
"r"
):
"""
"""
Get a configuration file from the instance using relative path
"""
if
".."
in
relative_path
or
relative_path
.
startswith
(
"/"
):
raise
Unauthorized
(
"In Relative Path, you cannot use .. or startwith / for security reason."
)
instance_home
=
getConfiguration
().
instancehome
file_path
=
os
.
path
.
join
(
instance_home
,
relative_path
)
if
not
os
.
path
.
exists
(
file_path
):
raise
IOError
,
'The file: %s does not exist.'
%
file_path
return
open
(
file_path
,
mode
)
security.declareProtected(Permissions.ManagePortal, 'getSoftwareHome')
security.declareProtected(Permissions.ManagePortal, 'getSoftwareHome')
def getSoftwareHome(self):
def getSoftwareHome(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