Docker-in-Docker (DinD) capabilities of public runners deactivated. More info

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

Polish common_settings.py

parent fdc7543a
...@@ -11,8 +11,17 @@ Note: ...@@ -11,8 +11,17 @@ Note:
* directSvc * directSvc
""" """
import plugin_dbui as dbui from plugin_dbui import (configure_forms,
import plugin_event as event configure_grids,
Dbui)
from plugin_event import (Core,
CoreUi,
Event,
Report,
ReportUi,
Selector,
ViewportUi)
ctrl = request.controller ctrl = request.controller
...@@ -35,7 +44,7 @@ is_dbui = (ctrl == "plugin_dbui") and \ ...@@ -35,7 +44,7 @@ is_dbui = (ctrl == "plugin_dbui") and \
fnct in ("debug", "documentations", "dbui_conf", "index") fnct in ("debug", "documentations", "dbui_conf", "index")
if is_dbui: if is_dbui:
dbui.Dbui.define_paths( Dbui.define_paths(
app_about="static/plugin_event/ABOUT.html", app_about="static/plugin_event/ABOUT.html",
app_css=None, app_css=None,
app_changelog="static/plugin_event/CHANGELOG", app_changelog="static/plugin_event/CHANGELOG",
...@@ -51,7 +60,7 @@ if is_dbui: ...@@ -51,7 +60,7 @@ if is_dbui:
app_pdf_user="static/plugin_event/docs/pdf/event_user.pdf", app_pdf_user="static/plugin_event/docs/pdf/event_user.pdf",
app_script="static/app.js") app_script="static/app.js")
event.Event.define_paths("fr") Event.define_paths("fr")
# ............................................................................ # ............................................................................
# #
...@@ -64,11 +73,11 @@ is_db = (ctrl == "plugin_dbui" and fnct in ("call", "csv", "dbui_conf")) \ ...@@ -64,11 +73,11 @@ is_db = (ctrl == "plugin_dbui" and fnct in ("call", "csv", "dbui_conf")) \
if is_db: if is_db:
# register source for the reporting # register source for the reporting
event.Event.register_sources() Event.register_sources()
event.Core.define_tables(db, T) Core.define_tables(db, T)
event.Report.define_tables(db, T) Report.define_tables(db, T)
event.Selector.define_tables(virtdb, db, T) Selector.define_tables(virtdb, db, T)
# ............................................................................ # ............................................................................
# #
...@@ -77,8 +86,8 @@ if is_db: ...@@ -77,8 +86,8 @@ if is_db:
if ctrl == "plugin_dbui" and fnct in ("call", "dbui_conf"): if ctrl == "plugin_dbui" and fnct in ("call", "dbui_conf"):
dbui.Dbui.initialise_ui() Dbui.initialise_ui()
directSvc = dbui.Dbui.start_directSvc() directSvc = Dbui.start_directSvc()
# common configuration for forms and grids # common configuration for forms and grids
tables = ["auth_group", tables = ["auth_group",
...@@ -96,17 +105,19 @@ if ctrl == "plugin_dbui" and fnct in ("call", "dbui_conf"): ...@@ -96,17 +105,19 @@ if ctrl == "plugin_dbui" and fnct in ("call", "dbui_conf"):
"projects", "projects",
"teams"] "teams"]
dbui.configure_forms(tables, plugins=["pFormToolTip"], width=350) configure_forms(tables, plugins=["pFormToolTip"], width=350)
dbui.configure_grids(tables, plugins=["pGridRowEditorConfirmDelete", configure_grids(
"pGridRowEditorContextMenu", tables,
"pGridRowEditorDblClick", plugins=["pGridRowEditorConfirmDelete",
"pGridToolbar"]) "pGridRowEditorContextMenu",
"pGridRowEditorDblClick",
"pGridToolbar"])
# tune the user interface # tune the user interface
event.CoreUi.define(db, T) CoreUi.define(db, T)
event.ReportUi.define(db, T) ReportUi.define(db, T)
# configure the main viewport # configure the main viewport
if fnct == "dbui_conf": if fnct == "dbui_conf":
event.ViewportUi.define(db, T, virtdb) ViewportUi.define(db, T, virtdb)
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