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
a15b1a55
Commit
a15b1a55
authored
11 years ago
by
legac
Browse files
Options
Downloads
Patches
Plain Diff
More robust version of the helper function get_version
parent
9e7ad4c3
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/plugin_dbui/helper.py
+9
-3
9 additions, 3 deletions
modules/plugin_dbui/helper.py
static/plugin_dbui/CHANGELOG
+2
-1
2 additions, 1 deletion
static/plugin_dbui/CHANGELOG
with
11 additions
and
4 deletions
modules/plugin_dbui/helper.py
+
9
−
3
View file @
a15b1a55
...
...
@@ -441,10 +441,16 @@ def get_versions():
# web2py
web2py
=
''
m
=
re
.
match
(
'
\d+\.\d+\.\d+
'
,
current
.
request
.
env
.
web2py_version
)
if
m
:
web2py
=
m
.
group
()
val
=
current
.
request
.
env
.
web2py_version
if
isinstance
(
val
,
str
):
m
=
re
.
match
(
'
\d+\.\d+\.\d+
'
,
val
)
if
m
:
web2py
=
m
.
group
()
elif
isinstance
(
val
,
(
tuple
,
list
)):
li
=
[
str
(
el
)
for
el
in
val
if
isinstance
(
el
,
int
)]
web2py
=
'
.
'
.
join
(
li
)
# version of the application
myapp
=
current
.
T
(
"
unknown
"
)
...
...
This diff is collapsed.
Click to expand it.
static/plugin_dbui/CHANGELOG
+
2
−
1
View file @
a15b1a55
--------------------------------- CHANGE LOG ----------------------------------
HEAD
- More robst version of the helper function get_version.
0.4.11.1 (Mar 2013)
- Deploy the javascript statement "use strict" (JSLINT)
- Upgrade to run with alias table.
...
...
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