Commit 54af149b authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Rename the method Dbui.initialize_paths as Dbui.define_paths.

parent 984c4ea2
plugin_dbui.Dbui.define_paths
=============================
.. currentmodule:: plugin_dbui
.. automethod:: Dbui.define_paths
\ No newline at end of file
plugin_dbui.Dbui.initialise_paths
=================================
.. currentmodule:: plugin_dbui
.. automethod:: Dbui.initialise_paths
\ No newline at end of file
......@@ -11,7 +11,7 @@ plugin_dbui.Dbui
.. autosummary::
:toctree: model/
~Dbui.initialise_paths
~Dbui.define_paths
~Dbui.initialise_ui
~Dbui.start_directSvc
......
......@@ -24,7 +24,7 @@ T.lazy = True # no immediate translation
plg_dbui = dbui.Dbui
plg_dbui.initialise_paths(
plg_dbui.define_paths(
app_about="static/plugin_dbui/ABOUT.html",
# app_css=None,
app_db_schema=None,
......
......@@ -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):
......
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