Mercurial > kallithea
comparison rhodecode/config/environment.py @ 548:b75b77ef649d
renamed hg_app to rhodecode
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 06 Oct 2010 03:22:52 +0200 |
parents | 1e757ac98988 |
children | 7e536d1af60d |
comparison
equal
deleted
inserted
replaced
547:1e757ac98988 | 548:b75b77ef649d |
---|---|
2 from mako.lookup import TemplateLookup | 2 from mako.lookup import TemplateLookup |
3 from pylons.configuration import PylonsConfig | 3 from pylons.configuration import PylonsConfig |
4 from pylons.error import handle_mako_error | 4 from pylons.error import handle_mako_error |
5 from rhodecode.config.routing import make_map | 5 from rhodecode.config.routing import make_map |
6 from rhodecode.lib.auth import set_available_permissions, set_base_path | 6 from rhodecode.lib.auth import set_available_permissions, set_base_path |
7 from rhodecode.lib.utils import repo2db_mapper, make_ui, set_hg_app_config | 7 from rhodecode.lib.utils import repo2db_mapper, make_ui, set_rhodecode_config |
8 from rhodecode.model import init_model | 8 from rhodecode.model import init_model |
9 from rhodecode.model.hg_model import _get_repos_cached_initial | 9 from rhodecode.model.hg_model import _get_repos_cached_initial |
10 from sqlalchemy import engine_from_config | 10 from sqlalchemy import engine_from_config |
11 import logging | 11 import logging |
12 import os | 12 import os |
70 config['pylons.app_globals'].baseui = make_ui('db') | 70 config['pylons.app_globals'].baseui = make_ui('db') |
71 | 71 |
72 repo2db_mapper(_get_repos_cached_initial(config['pylons.app_globals'], initial)) | 72 repo2db_mapper(_get_repos_cached_initial(config['pylons.app_globals'], initial)) |
73 set_available_permissions(config) | 73 set_available_permissions(config) |
74 set_base_path(config) | 74 set_base_path(config) |
75 set_hg_app_config(config) | 75 set_rhodecode_config(config) |
76 # CONFIGURATION OPTIONS HERE (note: all config options will override | 76 # CONFIGURATION OPTIONS HERE (note: all config options will override |
77 # any Pylons config options) | 77 # any Pylons config options) |
78 | 78 |
79 return config | 79 return config |