From 85f62bac6d72c8ea2535f77d6bad9cce0d7789bd Mon Sep 17 00:00:00 2001 From: Renaud Le Gac <legac@cppm.in2p3.fr> Date: Thu, 21 Mar 2013 15:25:13 +0100 Subject: [PATCH] Imporve logic to get the web2py version. --- modules/plugin_dbui/helper.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/plugin_dbui/helper.py b/modules/plugin_dbui/helper.py index 2a78e532..d3629c78 100644 --- a/modules/plugin_dbui/helper.py +++ b/modules/plugin_dbui/helper.py @@ -442,9 +442,11 @@ def get_versions(): mathjax = m.group(1) # web2py - li = [str(el) for el in current.request.env.web2py_version if isinstance(el, int)] - web2py = '.'.join(li) - + web2py = '' + m = re.match('\d+\.\d+\.\d+', current.request.env.web2py_version) + if m: + web2py = m.group() + # version of the application myapp = current.T("unknown") -- GitLab