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
2f60caa7
Commit
2f60caa7
authored
Nov 28, 2016
by
LE GAC Renaud
Browse files
Move report controllers into plugin_event.
parent
ae1d644f
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
10 additions
and
6 deletions
+10
-6
controllers/plugin_event.py
controllers/plugin_event.py
+2
-1
models/common_settings.py
models/common_settings.py
+1
-1
modules/plugin_event/model_selector.py
modules/plugin_event/model_selector.py
+3
-0
modules/plugin_event/ui_viewport.py
modules/plugin_event/ui_viewport.py
+4
-4
views/plugin_event/graph_extjs.html
views/plugin_event/graph_extjs.html
+0
-0
views/plugin_event/graph_mpl.html
views/plugin_event/graph_mpl.html
+0
-0
views/plugin_event/grid.html
views/plugin_event/grid.html
+0
-0
No files found.
controllers/
repor
t.py
→
controllers/
plugin_even
t.py
View file @
2f60caa7
""" Report controllers
# -*- coding: utf-8 -*-
"""plugin_event controllers
"""
import
urllib
...
...
models/common_settings.py
View file @
2f60caa7
...
...
@@ -55,7 +55,7 @@ if is_dbui:
#
is_db
=
(
ctrl
==
"plugin_dbui"
and
fnct
in
(
"call"
,
"csv"
,
"dbui_conf"
))
or
\
(
ctrl
==
"
repor
t"
)
(
ctrl
==
"
plugin_even
t"
)
if
is_db
:
EvtModelCore
(
db
,
T
)
...
...
modules/plugin_event/model_selector.py
View file @
2f60caa7
...
...
@@ -81,3 +81,6 @@ class EvtModelSelector(object):
table
.
id_fundings
.
requires
=
IS_IN_DB
(
db
,
"fundings.agency"
)
table
.
id_projects
.
requires
=
IS_IN_DB
(
db
,
"projects.project"
)
table
.
id_teams
.
requires
=
IS_IN_DB
(
db
,
"teams.team"
)
return
table
modules/plugin_event/ui_viewport.py
View file @
2f60caa7
...
...
@@ -227,7 +227,7 @@ class EvtUiViewport(object):
for
row
in
db
(
db
.
lists
.
id
>
0
).
select
(
orderby
=
db
.
lists
.
name
):
panel
=
selector_panel
panel
.
baseUrl
=
URL
(
"
repor
t"
,
"grid"
)
panel
.
baseUrl
=
URL
(
"
plugin_even
t"
,
"grid"
)
panel
.
baseParams
=
{
"id_lists"
:
row
.
id
}
add_child
(
row
.
name
,
panel
)
...
...
@@ -255,7 +255,7 @@ class EvtUiViewport(object):
for
row
in
db
(
db
.
metrics1d
.
id
>
0
).
select
(
orderby
=
db
.
metrics1d
.
name
):
panel
=
selector_panel
panel
.
baseUrl
=
URL
(
"
repor
t"
,
"grid"
)
panel
.
baseUrl
=
URL
(
"
plugin_even
t"
,
"grid"
)
panel
.
baseParams
=
{
"id_metrics1d"
:
row
.
id
}
add_child
(
row
.
name
,
panel
)
...
...
@@ -284,7 +284,7 @@ class EvtUiViewport(object):
for
row
in
db
(
db
.
metrics2d
.
id
>
0
).
select
(
orderby
=
db
.
metrics2d
.
name
):
panel
=
selector_panel
panel
.
baseUrl
=
URL
(
"
repor
t"
,
"grid"
)
panel
.
baseUrl
=
URL
(
"
plugin_even
t"
,
"grid"
)
panel
.
baseParams
=
{
"id_metrics2d"
:
row
.
id
}
node
.
add_child
(
row
.
name
,
panel
)
...
...
@@ -311,7 +311,7 @@ class EvtUiViewport(object):
for
row
in
db
(
db
.
graphs
.
id
>
0
).
select
(
orderby
=
db
.
graphs
.
name
):
panel
=
selector_panel
panel
.
baseUrl
=
URL
(
"
repor
t"
,
"graph_mpl"
)
panel
.
baseUrl
=
URL
(
"
plugin_even
t"
,
"graph_mpl"
)
panel
.
baseParams
=
{
"id_graphs"
:
row
.
id
}
node
.
add_child
(
row
.
name
,
panel
)
...
...
views/
repor
t/graph_extjs.html
→
views/
plugin_even
t/graph_extjs.html
View file @
2f60caa7
File moved
views/
repor
t/graph_mpl.html
→
views/
plugin_even
t/graph_mpl.html
View file @
2f60caa7
File moved
views/
repor
t/grid.html
→
views/
plugin_even
t/grid.html
View file @
2f60caa7
File moved
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