Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
tev
plugin_event
Commits
947da531
Commit
947da531
authored
Mar 15, 2017
by
LE GAC Renaud
Browse files
Rename the class Graph2 as Graph.
parent
193c623d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
controllers/plugin_event.py
controllers/plugin_event.py
+2
-2
modules/plugin_event/__init__.py
modules/plugin_event/__init__.py
+1
-1
modules/plugin_event/report_tools.py
modules/plugin_event/report_tools.py
+1
-1
No files found.
controllers/plugin_event.py
View file @
947da531
...
...
@@ -6,7 +6,7 @@ import urllib
from
plugin_dbui
import
INLINE_ALERT
from
plugin_event
import
Graph
2
,
List
,
Metric2D2
,
ReportException
from
plugin_event
import
Graph
,
List
,
Metric2D2
,
ReportException
def
grid
():
...
...
@@ -51,7 +51,7 @@ def metric2d():
try
:
report
=
Metric2D2
(
request
.
vars
.
id_metric2d
)
graph
=
Graph
2
(
report
)
graph
=
Graph
(
report
)
title
=
report
.
get_title
()
if
extension
==
"html"
:
...
...
modules/plugin_event/__init__.py
View file @
947da531
...
...
@@ -46,7 +46,7 @@ from report_objects import (do_title,
Metric1D
,
Metric2D
)
from
report_tools
import
(
Graph
2
,
from
report_tools
import
(
Graph
,
List
,
Metric2D2
)
...
...
modules/plugin_event/report_tools.py
View file @
947da531
...
...
@@ -166,7 +166,7 @@ class BaseReport(object):
return
"%s: %s"
%
(
title
,
" / "
.
join
(
metadata
))
class
Graph
2
(
object
):
class
Graph
(
object
):
"""Transform a DataFrame into a graph.
The rendering is performed by the matplotlib library. Therefore, many
...
...
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