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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tristan Cavelier
erp5
Commits
7b21969f
Commit
7b21969f
authored
Jun 21, 2011
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reintroduce getSystemSignatureDict
Now as with a dictionary with informations of all instance.
parent
230a06ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
product/ERP5/Tool/IntrospectionTool.py
product/ERP5/Tool/IntrospectionTool.py
+17
-0
No files found.
product/ERP5/Tool/IntrospectionTool.py
View file @
7b21969f
...
...
@@ -429,4 +429,21 @@ class IntrospectionTool(LogMixin, BaseTool):
activity_dict
[
'total'
]
=
len
(
self
.
portal_activities
.
getMessageList
())
return
activity_dict
security
.
declareProtected
(
Permissions
.
ManagePortal
,
'getSystemSignatureDict'
)
def
getSystemSignatureDict
(
self
):
""" Returns a dictionary with all informations related to the instance.
This information can report what resources (memcache, mysql, zope,
python, libraries) the instance is using. Also, what business templates are
installed.
Such information is usefull to detect changes in the system, into upgrader,
slapos and/or to build Introspection Reports.
"""
business_template_repository_list
=
self
.
portal_templates
.
getRepositoryList
()
return
dict
(
activity_dict
=
self
.
_getActivityDict
(),
version_dict
=
self
.
_getSystemVersionDict
(),
external_connection_dict
=
self
.
_getExternalConnectionDict
(),
business_template_dict
=
self
.
_getBusinessTemplateRevisionDict
(),
business_template_repository_list
=
business_template_repository_list
)
InitializeClass
(
IntrospectionTool
)
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