Commit 1548bc77 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Rename controller and views for the reporting as report.

parent a062b7fe
""" List controllers
""" Report controllers
July 2014
- use the new technique based on inline script, Ext.grid.Panel, ...
- remove the plugin_report
- the controller build a store containing all the information
- the content of the report is defined in the events table
- the content of the report is defined in the database
"""
import json
......@@ -84,6 +83,7 @@ def list():
cfg['data'].append(li)
response.view = 'report/grid.html'
return dict(cfg_store=cfg, view=view)
......@@ -146,7 +146,7 @@ def metric():
view.columns = json.dumps(view.columns)
view.features = json.dumps(view.features)
response.view = 'list2/list.html'
response.view = 'report/grid.html'
return dict(cfg_store=cfg, view=view)
......@@ -229,5 +229,5 @@ def metric_per_year():
view.columns = json.dumps(view.columns)
view.features = json.dumps(view.features)
response.view = 'list2/list.html'
response.view = 'report/grid.html'
return dict(cfg_store=cfg, view=view)
\ No newline at end of file
......@@ -95,7 +95,7 @@ listNode = Node(T('The lists'))
for row in db(db.views.id > 0).select():
leaf = PanelWithUrlSelector(virtdb.list_selector,
baseUrl=URL('list2', 'list'),
baseUrl=URL('report', 'list'),
baseParams={'id_views': row.id})
listNode.add_child(row.view, leaf)
......@@ -109,19 +109,19 @@ metricNode = Node(T('The metrics'))
leaf1 = PanelWithUrlSelector(virtdb.metric_selector,
baseParams={'group': 'people_categories.category'},
baseUrl=URL('list2', 'metric'))
baseUrl=URL('report', 'metric'))
leaf2 = PanelWithUrlSelector(virtdb.metric_selector,
baseParams={'group': 'people_categories.code'},
baseUrl=URL('list2', 'metric'))
baseUrl=URL('report', 'metric'))
leaf3 = PanelWithUrlSelector(virtdb.metric_selector,
baseParams={'group': 'people_categories.category'},
baseUrl=URL('list2', 'metric_per_year'))
baseUrl=URL('report', 'metric_per_year'))
leaf4 = PanelWithUrlSelector(virtdb.metric_selector,
baseParams={'group': 'people_categories.code'},
baseUrl=URL('list2', 'metric_per_year'))
baseUrl=URL('report', 'metric_per_year'))
metricNode.add_child(T('Metrics / category'), leaf1)
metricNode.add_child(T('Metrics / quality'), leaf2)
......
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