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
Carlos Ramos Carreño
erp5
Commits
f625f865
Commit
f625f865
authored
Nov 22, 2019
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
administration: udate ActivityTool_watchActivities for new table structure
not sure anybody still use this, but let's repair it.
parent
a1e7b8d1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
bt5/erp5_administration/SkinTemplateItem/portal_skins/erp5_administration/ActivityTool_watchActivities.py
...skins/erp5_administration/ActivityTool_watchActivities.py
+4
-4
No files found.
bt5/erp5_administration/SkinTemplateItem/portal_skins/erp5_administration/ActivityTool_watchActivities.py
View file @
f625f865
print
'<html><head><meta http-equiv="refresh" content="%s"></head><body>'
%
refresh_interval
print
'<html><head><meta http-equiv="refresh" content="%s"></head><body>'
%
refresh_interval
for
table
in
'message'
,
'message_queue'
:
for
table
in
'message'
,
'message_queue'
:
q
=
"""SELECT count(*) AS %(table)s, method_id, processing
, processing
_node AS node, min(priority) AS min_pri, max(priority) AS max_pri
q
=
"""SELECT count(*) AS %(table)s, method_id, processing_node AS node, min(priority) AS min_pri, max(priority) AS max_pri
FROM %(table)s GROUP BY method_id, processing
, processing
_node ORDER BY node"""
%
dict
(
table
=
table
)
FROM %(table)s GROUP BY method_id, processing_node ORDER BY node"""
%
dict
(
table
=
table
)
print
"<table border=
\
"
\
"
style=
\
"
font-size:XX-small;
\
"
><tbody> <tr><th>%s</th> <th>method_id</th> <th>
processing</th> <th>
node</th> <th>min_pri</th> <th>max_pri</th> </tr>"
%
table
print
"<table border=
\
"
\
"
style=
\
"
font-size:XX-small;
\
"
><tbody> <tr><th>%s</th> <th>method_id</th> <th>node</th> <th>min_pri</th> <th>max_pri</th> </tr>"
%
table
for
row
in
context
.
cmf_activity_sql_connection
.
manage_test
(
q
):
for
row
in
context
.
cmf_activity_sql_connection
.
manage_test
(
q
):
print
'<tr><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td
><td>%s</td</tr>'
%
(
row
[
table
],
row
[
'method_id'
],
row
[
'processing
'
],
row
[
'node'
],
row
[
'min_pri'
],
row
[
'max_pri'
])
print
'<tr><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td
</tr>'
%
(
row
[
table
],
row
[
'method_id
'
],
row
[
'node'
],
row
[
'min_pri'
],
row
[
'max_pri'
])
print
'</tbody> </table> <br/>'
print
'</tbody> </table> <br/>'
return
printed
return
printed
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