Mercurial > kallithea
comparison rhodecode/lib/utils.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 | f99075170eb4 |
comparison
equal
deleted
inserted
replaced
547:1e757ac98988 | 548:b75b77ef649d |
---|---|
142 | 142 |
143 if not ret: | 143 if not ret: |
144 raise Exception('Could not get application settings !') | 144 raise Exception('Could not get application settings !') |
145 settings = {} | 145 settings = {} |
146 for each in ret: | 146 for each in ret: |
147 settings['hg_app_' + each.app_settings_name] = each.app_settings_value | 147 settings['rhodecode_' + each.app_settings_name] = each.app_settings_value |
148 | 148 |
149 return settings | 149 return settings |
150 | 150 |
151 def get_hg_ui_settings(): | 151 def get_hg_ui_settings(): |
152 try: | 152 try: |
221 | 221 |
222 | 222 |
223 return baseui | 223 return baseui |
224 | 224 |
225 | 225 |
226 def set_hg_app_config(config): | 226 def set_rhodecode_config(config): |
227 hgsettings = get_hg_settings() | 227 hgsettings = get_hg_settings() |
228 | 228 |
229 for k, v in hgsettings.items(): | 229 for k, v in hgsettings.items(): |
230 config[k] = v | 230 config[k] = v |
231 | 231 |