Mercurial > kallithea
comparison rhodecode/config/environment.py @ 1006:02246101c846 beta
moved out celerypylons import to enviromnet to prevent celery from displaying celeryconfig.py warning
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Tue, 08 Feb 2011 20:41:59 +0100 |
parents | fb7a3b291e64 |
children | da5075ce681c |
comparison
equal
deleted
inserted
replaced
1005:520e67cbb494 | 1006:02246101c846 |
---|---|
1 """Pylons environment configuration""" | 1 """Pylons environment configuration""" |
2 | |
3 import os | |
4 import logging | |
5 | |
2 from mako.lookup import TemplateLookup | 6 from mako.lookup import TemplateLookup |
3 from pylons.configuration import PylonsConfig | 7 from pylons.configuration import PylonsConfig |
4 from pylons.error import handle_mako_error | 8 from pylons.error import handle_mako_error |
9 | |
10 import rhodecode.lib.app_globals as app_globals | |
11 import rhodecode.lib.helpers | |
12 | |
5 from rhodecode.config.routing import make_map | 13 from rhodecode.config.routing import make_map |
14 from rhodecode.lib import celerypylons | |
6 from rhodecode.lib.auth import set_available_permissions, set_base_path | 15 from rhodecode.lib.auth import set_available_permissions, set_base_path |
7 from rhodecode.lib.utils import repo2db_mapper, make_ui, set_rhodecode_config | 16 from rhodecode.lib.utils import repo2db_mapper, make_ui, set_rhodecode_config |
8 from rhodecode.model import init_model | 17 from rhodecode.model import init_model |
9 from rhodecode.model.scm import ScmModel | 18 from rhodecode.model.scm import ScmModel |
10 from sqlalchemy import engine_from_config | 19 from sqlalchemy import engine_from_config |
11 import logging | |
12 import os | |
13 import rhodecode.lib.app_globals as app_globals | |
14 import rhodecode.lib.helpers | |
15 | 20 |
16 log = logging.getLogger(__name__) | 21 log = logging.getLogger(__name__) |
17 | 22 |
18 def load_environment(global_conf, app_conf, initial=False): | 23 def load_environment(global_conf, app_conf, initial=False): |
19 """Configure the Pylons environment via the ``pylons.config`` | 24 """Configure the Pylons environment via the ``pylons.config`` |