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
limbra
limbra
Commits
9fef7986
Commit
9fef7986
authored
Apr 28, 2017
by
LE GAC Renaud
Browse files
Update model_selector and ui_viewport to fix minor issues.
parent
2003ca58
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
modules/model_selector.py
modules/model_selector.py
+4
-3
modules/ui_viewport.py
modules/ui_viewport.py
+2
-1
No files found.
modules/model_selector.py
View file @
9fef7986
...
...
@@ -263,6 +263,7 @@ class Selector(object):
"""
mode_dry_run
=
T
(
DRY_RUN
)
year
=
current
.
request
.
now
.
year
table
=
virtdb
.
define_table
(
...
...
@@ -276,7 +277,7 @@ class Selector(object):
Field
(
"format"
,
"string"
,
default
=
"html"
,
label
=
"Report format"
))
table
.
format
.
requires
=
IS_IN_SET
([
"html"
,
"pdf"
,
"tex"
])
table
.
mode
.
requires
=
IS_IN_SET
([
mode_dry_run
,
MODE_LOAD_IN_DB
])
table
.
mode
.
requires
=
IS_IN_SET
([
mode_dry_run
,
T
(
MODE_LOAD_IN_DB
)
])
table
.
id_projects
.
requires
=
IS_IN_DB
(
db
,
"projects.project"
)
table
.
id_teams
.
requires
=
IS_IN_DB
(
db
,
"teams.team"
)
...
...
@@ -364,7 +365,7 @@ class Selector(object):
table
.
id_categories
.
requires
=
IS_IN_DB
(
db
,
"categories.code"
)
table
.
id_projects
.
requires
=
IS_IN_DB
(
db
,
"projects.project"
)
table
.
id_teams
.
requires
=
IS_IN_DB
(
db
,
"teams.team"
)
table
.
mode
.
requires
=
IS_IN_SET
([
mode_dry_run
,
MODE_LOAD_IN_DB
])
table
.
mode
.
requires
=
IS_IN_SET
([
mode_dry_run
,
T
(
MODE_LOAD_IN_DB
)
])
table
.
xml
.
requires
=
IS_MATCH
(
"<\?xml*"
)
return
table
...
...
@@ -435,7 +436,7 @@ class Selector(object):
Field
(
"format"
,
"string"
,
default
=
"html"
,
label
=
"Report format"
))
table
.
format
.
requires
=
IS_IN_SET
([
"html"
,
"pdf"
,
"tex"
])
table
.
mode
.
requires
=
IS_IN_SET
([
mode_dry_run
,
MODE_LOAD_IN_DB
])
table
.
mode
.
requires
=
IS_IN_SET
([
mode_dry_run
,
T
(
MODE_LOAD_IN_DB
)
])
table
.
id_projects
.
requires
=
IS_IN_DB
(
db
,
"projects.project"
)
table
.
id_teams
.
requires
=
IS_IN_DB
(
db
,
"teams.team"
)
...
...
modules/ui_viewport.py
View file @
9fef7986
...
...
@@ -343,7 +343,8 @@ class ViewportUi(object):
loader
=
dict
(
autoLoad
=
True
,
renderer
=
"html"
,
url
=
URL
(
"plugin_dbui"
,
"documentations_list"
))
scripts
=
True
,
url
=
URL
(
"plugin_dbui"
,
"documentations_table"
))
doc_panel
=
Panel
(
loader
=
loader
,
...
...
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