Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
plugin_dbui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
w2pext
plugin_dbui
Commits
59e9ab57
Commit
59e9ab57
authored
10 years ago
by
legac
Committed by
LE GAC Renaud
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Update get_versions.
parent
83d2b1c5
No related branches found
No related tags found
2 merge requests
!27
Release 0.9.1
,
!26
8 extjs 6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/plugin_dbui/helper.py
+16
-27
16 additions, 27 deletions
modules/plugin_dbui/helper.py
with
16 additions
and
27 deletions
modules/plugin_dbui/helper.py
+
16
−
27
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
=
''
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment