aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Kuzminski <marcin@python-works.com>2012-09-08 00:17:06 +0200
committerMarcin Kuzminski <marcin@python-works.com>2012-09-08 00:17:06 +0200
commitb00ef1cd72d8be9d92f328a907d888a7a161a853 (patch)
tree459679c3a07209b6aa4c50b79ffe5f9b8f303bd3
parent41195a3d75f339a2f2fe5461e2179f2782dc4cd8 (diff)
warn user about not using waitress on python2.5
--HG-- branch : beta
-rw-r--r--rhodecode/lib/db_manage.py11
-rw-r--r--rhodecode/websetup.py1
2 files changed, 11 insertions, 1 deletions
diff --git a/rhodecode/lib/db_manage.py b/rhodecode/lib/db_manage.py
index 6370eacf..cd860087 100644
--- a/rhodecode/lib/db_manage.py
+++ b/rhodecode/lib/db_manage.py
@@ -30,7 +30,7 @@ import uuid
import logging
from os.path import dirname as dn, join as jn
-from rhodecode import __dbversion__
+from rhodecode import __dbversion__, __py_version__
from rhodecode.model.user import UserModel
from rhodecode.lib.utils import ask_ok
@@ -659,3 +659,12 @@ class DbManage(object):
reg_perm.user = default_user
reg_perm.permission = perm
self.sa.add(reg_perm)
+
+ def finish(self):
+ """
+ Function executed at the end of setup
+ """
+ if not __py_version__ >= (2, 6):
+ notify('Python2.5 detected, please switch '
+ 'egg:waitress#main -> egg:Paste#http '
+ 'in your .ini file') \ No newline at end of file
diff --git a/rhodecode/websetup.py b/rhodecode/websetup.py
index 79321041..d342dc59 100644
--- a/rhodecode/websetup.py
+++ b/rhodecode/websetup.py
@@ -48,3 +48,4 @@ def setup_app(command, conf, vars):
dbmanage.populate_default_permissions()
Session.commit()
load_environment(conf.global_conf, conf.local_conf, initial=True)
+ dbmanage.finish()