semantic version support in admin

This commit is contained in:
mdipierro
2012-12-20 15:47:46 -06:00
parent c1f47cdc44
commit 76ad8258f5
5 changed files with 11 additions and 11 deletions
+4 -3
View File
@@ -101,13 +101,14 @@ requests = 0 # gc timer
# pattern used to validate client address
regex_client = re.compile('[\w\-:]+(\.[\w\-]+)*\.?') # ## to account for IPV6
try:
#try:
if 1:
version_info = open(pjoin(global_settings.gluon_parent, 'VERSION'), 'r')
raw_version_string = version_info.read().strip()
version_info.close()
global_settings.web2py_version = parse_version(raw_version_string)
except:
raise RuntimeError("Cannot determine web2py version")
#except:
# raise RuntimeError("Cannot determine web2py version")
web2py_version = global_settings.web2py_version