From dabff8d0bcae8ad2d981925377e156190aa6341c Mon Sep 17 00:00:00 2001 From: Renaud Le Gac <legac@cppm.in2p3.fr> Date: Fri, 12 Oct 2012 14:37:48 +0200 Subject: [PATCH] Bug fixed in the helper function version. --- controllers/default.py | 2 +- languages/fr-fr.py | 1 + models/widgets_viewport.py | 3 +++ modules/plugin_dbui/helper.py | 2 +- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/controllers/default.py b/controllers/default.py index 1c1e7b59..f4f47f0b 100644 --- a/controllers/default.py +++ b/controllers/default.py @@ -37,7 +37,7 @@ def pack_plugin(): return None -def version(): +def versions(): """Return the versions of the different part of the code. """ diff --git a/languages/fr-fr.py b/languages/fr-fr.py index e8659990..0b580a64 100644 --- a/languages/fr-fr.py +++ b/languages/fr-fr.py @@ -98,5 +98,6 @@ 'unknown': 'unknown', 'url': 'url', 'value already in database or empty': 'value already in database or empty', +'versions': 'versions', 'year': 'année', } diff --git a/models/widgets_viewport.py b/models/widgets_viewport.py index 3365296b..448aaa5b 100755 --- a/models/widgets_viewport.py +++ b/models/widgets_viewport.py @@ -33,6 +33,9 @@ node = dbui.PanelWithUrlSelector(baseUrl=URL('reports', 'report_2'), selectorCollapsible=False) reportNode.add_child(T('report_2'), node) +versionNode = dbui.Panel(autoLoad='/'+request.application+'/default/versions') +reportNode.add_child(T('versions'), versionNode) + # # The viewport with its navigation tree # diff --git a/modules/plugin_dbui/helper.py b/modules/plugin_dbui/helper.py index 57374333..8f10a9f1 100644 --- a/modules/plugin_dbui/helper.py +++ b/modules/plugin_dbui/helper.py @@ -305,7 +305,7 @@ def get_versions(): server_path, client_path = get_reference_paths() # plugin dbui - fn = os.path.join(server_path, 'static', 'plugin_dbui', 'src', 'appbase.js') + fn = os.path.join(server_path, 'static', 'plugin_dbui', 'src', 'base.js') fi = open(fn, 'rb') s = fi.read() -- GitLab