Docker-in-Docker (DinD) capabilities of public runners deactivated. More info

Commit 2f60caa7 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Move report controllers into plugin_event.

parent ae1d644f
""" Report controllers
# -*- coding: utf-8 -*-
"""plugin_event controllers
"""
import urllib
......
......@@ -55,7 +55,7 @@ if is_dbui:
#
is_db = (ctrl == "plugin_dbui" and fnct in ("call", "csv", "dbui_conf")) or \
(ctrl == "report")
(ctrl == "plugin_event")
if is_db:
EvtModelCore(db, T)
......
......@@ -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
......@@ -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("report", "grid")
panel.baseUrl = URL("plugin_event", "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("report", "grid")
panel.baseUrl = URL("plugin_event", "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("report", "grid")
panel.baseUrl = URL("plugin_event", "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("report", "graph_mpl")
panel.baseUrl = URL("plugin_event", "graph_mpl")
panel.baseParams = {"id_graphs": row.id}
node.add_child(row.name, panel)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment