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
Docker-in-Docker (DinD) capabilities of public runners deactivated.
More info
Open sidebar
limbra
limbra
Commits
ebf9cba0
Commit
ebf9cba0
authored
Apr 11, 2017
by
LE GAC Renaud
Browse files
Update models/common_settings to implement the new initialization of plugin_dbui.
parent
aa86c7d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
23 deletions
+25
-23
models/common_settings.py
models/common_settings.py
+25
-23
No files found.
models/common_settings.py
View file @
ebf9cba0
...
...
@@ -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'
)
# ............................................................................
#
# C
ONSTANTS
# C
onstants
#
#-------------------------------------------------------------------------------
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'
,
...
...
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