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
b2958c9f
Commit
b2958c9f
authored
Apr 08, 2017
by
LE GAC Renaud
Browse files
Update ui modules to rename the method 'define' as 'configure'.
parent
5dcac611
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
13 deletions
+14
-13
models/common_settings.py
models/common_settings.py
+5
-5
modules/plugin_event/ui_core.py
modules/plugin_event/ui_core.py
+3
-2
modules/plugin_event/ui_report.py
modules/plugin_event/ui_report.py
+3
-3
modules/plugin_event/ui_selector.py
modules/plugin_event/ui_selector.py
+2
-2
modules/plugin_event/ui_viewport.py
modules/plugin_event/ui_viewport.py
+1
-1
No files found.
models/common_settings.py
View file @
b2958c9f
...
...
@@ -152,10 +152,10 @@ if ctrl == "plugin_dbui" and fnct in ("call", "dbui_conf"):
"pGridRowEditorDblClick"
,
"pGridToolbar"
])
#
tun
e the user interface
CoreUi
.
defin
e
(
db
,
T
)
ReportUi
.
defin
e
(
db
,
T
)
#
configur
e the user interface
for the main tables
CoreUi
.
configur
e
(
db
,
T
)
ReportUi
.
configur
e
(
db
,
T
)
# configure the
main
viewport
# configure the viewport
if
fnct
==
"dbui_conf"
:
ViewportUi
.
defin
e
(
db
,
T
,
virtdb
)
ViewportUi
.
configur
e
(
db
,
T
,
virtdb
)
modules/plugin_event/ui_core.py
View file @
b2958c9f
...
...
@@ -15,8 +15,9 @@ storeModifier = dbui.StoreModifier
class
CoreUi
(
object
):
@
staticmethod
def
define
(
db
,
T
):
"""Tune the user interface for the history table and its foreign tables,
def
configure
(
db
,
T
):
"""Configure the user interface for the history table and
its foreign tables,
Args:
db (pyDAL.DAL): database connection
...
...
modules/plugin_event/ui_report.py
View file @
b2958c9f
...
...
@@ -31,9 +31,9 @@ It is possible to filter the source by applying a query on its fields.
class
ReportUi
(
object
):
@
staticmethod
def
defin
e
(
db
,
T
):
"""
Tun
e the user interface for the report tables
:
lists
, metrics1d,
metrics2d
and graphs
.
def
configur
e
(
db
,
T
):
"""
Configur
e the user interface for the report tables lists
and
metrics2d.
Args:
db (pyDAL.DAL): database connection
...
...
modules/plugin_event/ui_selector.py
View file @
b2958c9f
...
...
@@ -16,8 +16,8 @@ storeModifier = dbui.StoreModifier
class
SelectorUi
(
object
):
@
staticmethod
def
defin
e
(
virtdb
,
db
,
T
):
"""
Tun
e the user interface for
the
selector.
def
configur
e
(
virtdb
,
db
,
T
):
"""
Configur
e the user interface for selector
s
.
Args:
virtdb (pyDAL.DAL): connection to the virtual database
...
...
modules/plugin_event/ui_viewport.py
View file @
b2958c9f
...
...
@@ -18,7 +18,7 @@ to_grid = dbui.to_gridPanel
class
ViewportUi
(
object
):
@
staticmethod
def
defin
e
(
db
,
T
,
virtdb
):
def
configur
e
(
db
,
T
,
virtdb
):
"""Configure the viewport.
Args:
...
...
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