Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
w2pext
plugin_dbui
Commits
59e9ab57
Commit
59e9ab57
authored
Dec 21, 2014
by
legac
Committed by
LE GAC Renaud
Jun 25, 2016
Browse files
Update get_versions.
parent
83d2b1c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
27 deletions
+16
-27
modules/plugin_dbui/helper.py
modules/plugin_dbui/helper.py
+16
-27
No files found.
modules/plugin_dbui/helper.py
View file @
59e9ab57
...
...
@@ -597,31 +597,22 @@ def get_versions():
# plugin dbui
fn
=
os
.
path
.
join
(
server_path
,
'static'
,
'plugin_dbui'
,
'src'
,
'Dbui.js'
)
fi
=
open
(
fn
,
'rb'
)
s
=
fi
.
read
()
fi
.
close
()
m
=
re
.
match
(
"(.+ version: ')([\w._-]*)('.+)"
,
s
,
re
.
DOTALL
)
dbui
=
m
.
group
(
2
)
with
open
(
fn
,
'rb'
)
as
fi
:
s
=
fi
.
read
()
m
=
re
.
match
(
"(.+ version: ')([\w._-]*)('.+)"
,
s
,
re
.
DOTALL
)
dbui
=
m
.
group
(
2
)
# plugin Ext JS
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
):
fn
=
os
.
path
.
join
(
server_path
,
'static'
,
'plugin_extjs'
,
'src'
,
'version'
,
'Version.js'
)
fn
=
os
.
path
.
join
(
path
,
'version.properties'
)
fi
=
open
(
fn
,
'rb'
)
s
=
fi
.
read
()
fi
.
close
()
m
=
re
.
match
(
r
".+ version = '(\d+(\.\d+)*)',"
,
s
,
re
.
DOTALL
)
if
m
:
extjs
=
m
.
group
(
1
)
with
open
(
fn
,
'rb'
)
as
fi
:
s
=
fi
.
read
()
m
=
re
.
search
(
r
"version.release=(\d+(\.\d+)*)"
,
s
)
if
m
:
extjs
=
m
.
group
(
1
)
# plugin mathjax
mathjax
=
current
.
T
(
'plugin not install'
)
...
...
@@ -632,13 +623,11 @@ def get_versions():
'plugin_mathjax'
,
'MathJax.js'
)
fi
=
open
(
fn
,
'rb'
)
s
=
fi
.
read
()
fi
.
close
()
m
=
re
.
match
(
r
'.+MathJax.version="(\d+(\.\d+)*)";'
,
s
,
re
.
DOTALL
)
if
m
:
mathjax
=
m
.
group
(
1
)
with
open
(
fn
,
'rb'
)
as
fi
:
s
=
fi
.
read
()
m
=
re
.
match
(
r
'.+MathJax.version="(\d+(\.\d+)*)";'
,
s
,
re
.
DOTALL
)
if
m
:
mathjax
=
m
.
group
(
1
)
# web2py
web2py
=
''
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment