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
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
Léo-Paul Géneau
erp5
Commits
eb87f355
Commit
eb87f355
authored
Jun 21, 2011
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added to Introspection Tool API for collect activities information
parent
009fe55c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
product/ERP5/Tool/IntrospectionTool.py
product/ERP5/Tool/IntrospectionTool.py
+12
-0
No files found.
product/ERP5/Tool/IntrospectionTool.py
View file @
eb87f355
...
@@ -508,5 +508,17 @@ class IntrospectionTool(LogMixin, BaseTool):
...
@@ -508,5 +508,17 @@ class IntrospectionTool(LogMixin, BaseTool):
return
{
"python"
:
py_version
,
"pysvn"
:
pysvn_version
,
return
{
"python"
:
py_version
,
"pysvn"
:
pysvn_version
,
"erp5"
:
erp5_version
,
"zope"
:
zope_version
"erp5"
:
erp5_version
,
"zope"
:
zope_version
}
}
security
.
declareProtected
(
Permissions
.
ManagePortal
,
'_getActivityDict'
)
def
_getActivityDict
(
self
):
""" Return a Dictionary with the snapshot with the status of activities.
failures (-2 and -3) and running.
"""
activity_dict
=
{}
# XXX Maybe this is not so efficient check. Performance Optimization
# should be consider.
activity_dict
[
'failure'
]
=
len
(
self
.
portal_activities
.
getMessageList
(
processing_node
=-
2
))
activity_dict
[
'total'
]
=
len
(
self
.
portal_activities
.
getMessageList
())
return
activity_dict
InitializeClass
(
IntrospectionTool
)
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