##// END OF EJS Templates
warn user about not using waitress on python2.5
marcink -
r2827:d30c0a98 beta
parent child Browse files
Show More
@@ -30,7 +30,7 b' import uuid'
30 import logging
30 import logging
31 from os.path import dirname as dn, join as jn
31 from os.path import dirname as dn, join as jn
32
32
33 from rhodecode import __dbversion__
33 from rhodecode import __dbversion__, __py_version__
34
34
35 from rhodecode.model.user import UserModel
35 from rhodecode.model.user import UserModel
36 from rhodecode.lib.utils import ask_ok
36 from rhodecode.lib.utils import ask_ok
@@ -659,3 +659,12 b' class DbManage(object):'
659 reg_perm.user = default_user
659 reg_perm.user = default_user
660 reg_perm.permission = perm
660 reg_perm.permission = perm
661 self.sa.add(reg_perm)
661 self.sa.add(reg_perm)
662
663 def finish(self):
664 """
665 Function executed at the end of setup
666 """
667 if not __py_version__ >= (2, 6):
668 notify('Python2.5 detected, please switch '
669 'egg:waitress#main -> egg:Paste#http '
670 'in your .ini file') No newline at end of file
@@ -48,3 +48,4 b' def setup_app(command, conf, vars):'
48 dbmanage.populate_default_permissions()
48 dbmanage.populate_default_permissions()
49 Session.commit()
49 Session.commit()
50 load_environment(conf.global_conf, conf.local_conf, initial=True)
50 load_environment(conf.global_conf, conf.local_conf, initial=True)
51 dbmanage.finish()
General Comments 0
You need to be logged in to leave comments. Login now