Skip to content
Snippets Groups Projects
Commit 59e9ab57 authored by legac's avatar legac Committed by LE GAC Renaud
Browse files

Update get_versions.

parent 83d2b1c5
No related branches found
No related tags found
2 merge requests!27Release 0.9.1,!268 extjs 6
...@@ -597,31 +597,22 @@ def get_versions(): ...@@ -597,31 +597,22 @@ def get_versions():
# plugin dbui # plugin dbui
fn = os.path.join(server_path, 'static', 'plugin_dbui', 'src', 'Dbui.js') fn = os.path.join(server_path, 'static', 'plugin_dbui', 'src', 'Dbui.js')
with open(fn, 'rb') as fi:
fi = open(fn, 'rb') s = fi.read()
s = fi.read() m = re.match("(.+ version: ')([\w._-]*)('.+)", s, re.DOTALL)
fi.close() dbui = m.group(2)
m = re.match("(.+ version: ')([\w._-]*)('.+)", s, re.DOTALL)
dbui = m.group(2)
# plugin Ext JS # plugin Ext JS
extjs = current.T('plugin not install') extjs = current.T('plugin not install')
path = os.path.join(server_path, 'static', 'plugin_extjs') path = os.path.join(server_path, 'static', 'plugin_extjs_6')
if os.path.exists(path): if os.path.exists(path):
fn = os.path.join(server_path, 'static', fn = os.path.join(path, 'version.properties')
'plugin_extjs',
'src',
'version',
'Version.js')
fi = open(fn, 'rb') with open(fn, 'rb') as fi:
s = fi.read() s = fi.read()
fi.close() m = re.search(r"version.release=(\d+(\.\d+)*)", s)
if m:
m = re.match(r".+ version = '(\d+(\.\d+)*)',", s, re.DOTALL) extjs = m.group(1)
if m:
extjs = m.group(1)
# plugin mathjax # plugin mathjax
mathjax = current.T('plugin not install') mathjax = current.T('plugin not install')
...@@ -632,13 +623,11 @@ def get_versions(): ...@@ -632,13 +623,11 @@ def get_versions():
'plugin_mathjax', 'plugin_mathjax',
'MathJax.js') 'MathJax.js')
fi = open(fn, 'rb') with open(fn, 'rb') as fi:
s = fi.read() s = fi.read()
fi.close() m = re.match(r'.+MathJax.version="(\d+(\.\d+)*)";', s, re.DOTALL)
if m:
m = re.match(r'.+MathJax.version="(\d+(\.\d+)*)";', s, re.DOTALL) mathjax = m.group(1)
if m:
mathjax = m.group(1)
# web2py # web2py
web2py = '' web2py = ''
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment