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

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

Update models/common_settings to implement the new initialization of plugin_dbui.

parent aa86c7d2
......@@ -23,33 +23,31 @@ from regex import (REG_COLLABORATION,
REG_SUBMITTED,
REG_VALID_ORIGIN)
#-------------------------------------------------------------------------------
# ............................................................................
#
# PLUGIN DBUI
# Language
#
#-------------------------------------------------------------------------------
plugins = PluginManager()
plugins.dbui.app_css = 'static/my.css'
plugins.dbui.app_debug = None
plugins.dbui.app_lg = 'static/limbra/locale/limbra-lang-fr.js'
plugins.dbui.app_libmin = 'static/limbra-min.js'
plugins.dbui.app_script = 'static/app.js'
# plugins.dbui.app_script_dir = None
#-------------------------------------------------------------------------------
T.set_current_languages('en', 'en-gb', 'en-us') # mother tongue
T.force('fr-fr') # user language
T.lazy = False # immediate translation
# ............................................................................
#
# LANGUAGE
# Plugin dbui configuration
#
#-------------------------------------------------------------------------------
T.set_current_languages('en', 'en-gb', 'en-us') # mother tongue
T.force('fr-fr') # user language
T.lazy = False # immediate translation
#-------------------------------------------------------------------------------
dbui.Dbui.define_paths(
app_css = 'static/my.css',
app_lg = 'static/limbra/locale/limbra-lang-fr.js',
app_libmin = 'static/limbra-min.js',
app_script = 'static/app.js')
# ............................................................................
#
# CONSTANTS
# Constants
#
#-------------------------------------------------------------------------------
undef = T(dbui.UNDEF)
undef_id = dbui.UNDEF_ID
year = datetime.datetime.now().year
......@@ -83,11 +81,15 @@ ONE_HOUR = 3600000
STORES = ['cds.cern.ch', 'inspirehep.net']
#-------------------------------------------------------------------------------
# ............................................................................
#
# COMMON CONFIGURATION FOR FORMS AND GRIDS
# Configure the user interface
#
#-------------------------------------------------------------------------------
dbui.Dbui.initialise_ui()
directSvc = dbui.Dbui.start_directSvc()
# common configuration for forms and grids
tables = ['application',
'auth_group',
'auth_membership',
......
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