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
b120b61e
Commit
b120b61e
authored
Nov 24, 2016
by
LE GAC Renaud
Browse files
Update common_settings.py to implement the new mechanism initialising dbui.
parent
4e852773
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
14 deletions
+13
-14
models/common_settings.py
models/common_settings.py
+13
-14
static/track_events/resources/css/my.css
static/track_events/resources/css/my.css
+0
-0
No files found.
models/common_settings.py
View file @
b120b61e
...
...
@@ -5,8 +5,6 @@
import
plugin_dbui
as
dbui
from
datetime
import
datetime
from
gluon.tools
import
PluginManager
from
plugin_event
import
(
EvtModelCore
,
EvtModelReport
,
EvtModelSelector
,
...
...
@@ -26,25 +24,26 @@ T.lazy = False # immediate translation
#.............................................................................
#
#
Create the database models
#
Plugin dbui configuration
#
EvtModelCore
(
db
,
T
)
EvtModelReport
(
db
,
T
)
EvtModelSelector
(
virtdb
,
db
,
T
)
dbui
.
Dbui
.
initialise
(
app_css
=
"static/track_events/resources/css/my.css"
,
app_debug
=
"static/track_events/src"
,
app_lg
=
"static/track_events/locale/myapp-lang-fr.js"
,
app_libmin
=
"static/track_events-min.js"
,
app_script
=
"static/app.js"
)
directSvc
=
dbui
.
Dbui
.
start_directSvc
()
#.............................................................................
#
#
Plugin dbui configuration
#
Create the database models
#
plugins
=
PluginManager
()
plugins
.
dbui
.
app_css
=
"static/my.css"
plugins
.
dbui
.
app_debug
=
"static/src"
plugins
.
dbui
.
app_libmin
=
"static/track_events-min.js"
plugins
.
dbui
.
app_lg
=
"static/track_events/locale/myapp-lang-fr.js"
plugins
.
dbui
.
app_script
=
"static/app.js"
# plugins.dbui.app_script_dir = None
EvtModelCore
(
db
,
T
)
EvtModelReport
(
db
,
T
)
EvtModelSelector
(
virtdb
,
db
,
T
)
#.............................................................................
#
...
...
static/my.css
→
static/
track_events/resources/css/
my.css
View file @
b120b61e
File moved
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