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
8f7ce117
Commit
8f7ce117
authored
Mar 30, 2017
by
LE GAC Renaud
Browse files
Update model_selector to fix a default values for the graph parameter kind.
parent
0498b874
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
modules/plugin_event/model_selector.py
modules/plugin_event/model_selector.py
+5
-1
No files found.
modules/plugin_event/model_selector.py
View file @
8f7ce117
...
...
@@ -8,6 +8,10 @@ from model_report import DEF_GRAPH, DEF_SUMMARY
from
pydal
import
Field
DEF_GRAPH_SEL
=
DEF_GRAPH
.
copy
()
DEF_GRAPH_SEL
[
"kind"
]
=
"bar"
class
Selector
(
object
):
"""Create virtual tables used to generate selector interfaces.
...
...
@@ -77,7 +81,7 @@ class Selector(object):
Field
(
"summary_y"
,
"json"
,
default
=
DEF_SUMMARY
),
Field
(
"is_graph"
,
"boolean"
),
Field
(
"graph"
,
"json"
,
default
=
DEF_GRAPH
))
Field
(
"graph"
,
"json"
,
default
=
DEF_GRAPH
_SEL
))
table
.
id_domains
.
requires
=
IS_IN_DB
(
db
,
"domains.domain"
)
table
.
id_fundings
.
requires
=
IS_IN_DB
(
db
,
"fundings.agency"
)
...
...
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