fixed issue with version
This commit is contained in:
1 parent
2bfd7a2467
commit
a071f07634
2 files changed
+9
-2
No files matched your search
@@ -1 +1 @@
|
|||||||
Version 2.4.2-stable+timestamp.2013.03.11.11.09.58
|
Version 2.4.2-stable+timestamp.2013.03.11.14.22.04
|
||||||
@@ -76,7 +76,14 @@ def license():
|
|||||||
|
|
||||||
|
|
||||||
def version():
|
def version():
|
||||||
return 'Version '+request.env.web2py_version
|
from gluon.fileutils import parse_version
|
||||||
|
(a, b, c, pre_release, build) = parse_version(request.env.web2py_version)
|
||||||
|
return 'Version %i.%i.%i (%.4i-%.2i-%.2i %.2i:%.2i:%.2i) %s' % (
|
||||||
|
a,b,c,build.year,build.month,build.day,
|
||||||
|
build.hour,build.minute,build.second,pre_release)
|
||||||
|
|
||||||
|
def raw_version():
|
||||||
|
return request.env.web2py_version
|
||||||
|
|
||||||
@cache('examples', time_expire=cache_expire)
|
@cache('examples', time_expire=cache_expire)
|
||||||
def examples():
|
def examples():
|
||||||
|
|||||||
Reference in new issue
Block a user