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
1548bc77
Commit
1548bc77
authored
Jan 27, 2015
by
LE GAC Renaud
Browse files
Rename controller and views for the reporting as report.
parent
a062b7fe
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
controllers/report.py
controllers/report.py
+5
-5
models/widgets_viewport.py
models/widgets_viewport.py
+5
-5
views/report/grid.html
views/report/grid.html
+0
-0
No files found.
controllers/
list2
.py
→
controllers/
report
.py
View file @
1548bc77
"""
Lis
t controllers
"""
Repor
t 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
tab
l
e
- the content of the report is defined in the
da
tab
as
e
"""
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
models/widgets_viewport.py
View file @
1548bc77
...
...
@@ -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
)
...
...
views/
list2/list
.html
→
views/
report/grid
.html
View file @
1548bc77
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