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
w2pext
plugin_dbui
Commits
54af149b
Commit
54af149b
authored
Dec 09, 2016
by
LE GAC Renaud
Browse files
Rename the method Dbui.initialize_paths as Dbui.define_paths.
parent
984c4ea2
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
14 deletions
+17
-14
docs/api/generated/model/plugin_dbui.Dbui.define_paths.rst
docs/api/generated/model/plugin_dbui.Dbui.define_paths.rst
+6
-0
docs/api/generated/model/plugin_dbui.Dbui.initialise_paths.rst
...api/generated/model/plugin_dbui.Dbui.initialise_paths.rst
+0
-6
docs/api/generated/plugin_dbui.Dbui.rst
docs/api/generated/plugin_dbui.Dbui.rst
+1
-1
models/common_settings.py
models/common_settings.py
+1
-1
modules/plugin_dbui/dbui.py
modules/plugin_dbui/dbui.py
+9
-6
No files found.
docs/api/generated/model/plugin_dbui.Dbui.define_paths.rst
0 → 100644
View file @
54af149b
plugin_dbui.Dbui.define_paths
=============================
.. currentmodule:: plugin_dbui
.. automethod:: Dbui.define_paths
\ No newline at end of file
docs/api/generated/model/plugin_dbui.Dbui.initialise_paths.rst
deleted
100644 → 0
View file @
984c4ea2
plugin_dbui.Dbui.initialise_paths
=================================
.. currentmodule:: plugin_dbui
.. automethod:: Dbui.initialise_paths
\ No newline at end of file
docs/api/generated/plugin_dbui.Dbui.rst
View file @
54af149b
...
...
@@ -11,7 +11,7 @@ plugin_dbui.Dbui
.. autosummary::
:toctree: model/
~Dbui.
initialis
e_paths
~Dbui.
defin
e_paths
~Dbui.initialise_ui
~Dbui.start_directSvc
...
...
models/common_settings.py
View file @
54af149b
...
...
@@ -24,7 +24,7 @@ T.lazy = True # no immediate translation
plg_dbui
=
dbui
.
Dbui
plg_dbui
.
initialis
e_paths
(
plg_dbui
.
defin
e_paths
(
app_about
=
"static/plugin_dbui/ABOUT.html"
,
# app_css=None,
app_db_schema
=
None
,
...
...
modules/plugin_dbui/dbui.py
View file @
54af149b
...
...
@@ -89,16 +89,12 @@ class Dbui(object):
"""
@
staticmethod
def
initialise_paths
(
**
kwargs
):
"""Initialise the configuration of the the plugin dbui, namely paths
and a persistent storage.
def
define_paths
(
**
kwargs
):
"""define paths for the plugin dbui.
Paths are relative to the main directory of the application.
They can target a file (static/myapp.css) or a directory (static/css).
The persistent storage contains the configuration of the widgets
used in the user interface.
Note:
The configuration of the plugin is persistent across the
application. It can be accessed at any time using the syntax::
...
...
@@ -295,6 +291,13 @@ class Dbui(object):
def
initialise_ui
():
"""Initialise persistent storage for the plugin dbui.
Note:
The configuration of the plugin is persistent across the
application. It can be accessed at any time using the syntax::
from gluon.tools import PluginManager
PluginManager("dbui").dbui
Attributes:
modifier_fields (dict):
modifier_forms (dict):
...
...
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