semantic version support in admin
This commit is contained in:
+4
-3
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user