Commit 7f57222b authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Update dbui.py to fix issue generating the sphinx documentation.

parent ce01ab7a
......@@ -7,7 +7,6 @@ import plugin_dbui as dbui
from gluon import current
from gluon.html import URL
from gluon.storage import Storage
from gluon.tools import PluginManager
from helper import get_language
......@@ -25,8 +24,8 @@ defaults = Storage(
app_script_dir=None,
# dbui library
dbui_conf=URL(c="plugin_dbui", f="dbui_conf"),
dbui_conf_debug=URL(c="plugin_dbui", f="dbui_conf", vars=dict(debug="")),
dbui_conf="/%s/plugin_dbui/dbui_conf",
dbui_conf_debug="/%s/plugin_dbui/dbui_conf?debug",
dbui_css=[
"static/plugin_dbui/resources/css/kde-oxygen.css",
......@@ -118,12 +117,12 @@ class Dbui(object):
dbui_conf (str):
The ULR returning the configuration for the User Interface.
The default is ``URL(c='plugin_dbui', f='dbui_conf')``,
The default is ``/myapp/plugin_dbui/dbui_conf``,
dbui_conf_debug (str):
The URL returning the debug version of the configuration for
the User Interface. The default is
``URL(c='plugin_dbui', f='dbui_conf', vars=dict(debug=""))``.
``/myapp/plugin_dbui/dbui_conf?debug``.
dbui_css (str or list):
Relative path to CSS files for the dbui library:
......@@ -187,6 +186,12 @@ class Dbui(object):
plugin.dbui_lg = plugin.dbui_lg % lg
plugin.extjs_lg = plugin.extjs_lg % lg
# update values depending on the application
application = current.request.application
plugin.dbui_conf = plugin.dbui_conf % application
plugin.dbui_conf_debug = plugin.dbui_conf_debug % application
# persistent storage for the UI (private)
plugin.modifier_fields={}
plugin.modifier_forms={}
......
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