📣 An issue occured with the embedded container registry on October 25 2021, between 10:30 and 12:10 (UTC+2). Any persisting issues should be reported to CC-IN2P3 Support. 🐛

Commit b2958c9f authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Update ui modules to rename the method 'define' as 'configure'.

parent 5dcac611
......@@ -152,10 +152,10 @@ if ctrl == "plugin_dbui" and fnct in ("call", "dbui_conf"):
"pGridRowEditorDblClick",
"pGridToolbar"])
# tune the user interface
CoreUi.define(db, T)
ReportUi.define(db, T)
# configure the user interface for the main tables
CoreUi.configure(db, T)
ReportUi.configure(db, T)
# configure the main viewport
# configure the viewport
if fnct == "dbui_conf":
ViewportUi.define(db, T, virtdb)
ViewportUi.configure(db, T, virtdb)
......@@ -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
......
......@@ -31,9 +31,9 @@ It is possible to filter the source by applying a query on its fields.
class ReportUi(object):
@staticmethod
def define(db, T):
"""Tune the user interface for the report tables: lists, metrics1d,
metrics2d and graphs.
def configure(db, T):
"""Configure the user interface for the report tables lists
and metrics2d.
Args:
db (pyDAL.DAL): database connection
......
......@@ -16,8 +16,8 @@ storeModifier = dbui.StoreModifier
class SelectorUi(object):
@staticmethod
def define(virtdb, db, T):
"""Tune the user interface for the selector.
def configure(virtdb, db, T):
"""Configure the user interface for selectors.
Args:
virtdb (pyDAL.DAL): connection to the virtual database
......
......@@ -18,7 +18,7 @@ to_grid = dbui.to_gridPanel
class ViewportUi(object):
@staticmethod
def define(db, T, virtdb):
def configure(db, T, virtdb):
"""Configure the viewport.
Args:
......
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