comparison pylons_app/lib/utils.py @ 392:b27d32cb3157

Implemented hooks system, Added repo size hook, and active flag on ui settings in the database to able to toggle them.
author Marcin Kuzminski <marcin@python-works.com>
date Fri, 06 Aug 2010 02:03:22 +0200
parents 3bcf9529d221
children e8af467b5a60
comparison
equal deleted inserted replaced
391:a9814a642e11 392:b27d32cb3157
167 167
168 168
169 elif read_from == 'db': 169 elif read_from == 'db':
170 hg_ui = get_hg_ui_cached() 170 hg_ui = get_hg_ui_cached()
171 for ui_ in hg_ui: 171 for ui_ in hg_ui:
172 log.debug('settings ui from db[%s]%s:%s', ui_.ui_section, ui_.ui_key, ui_.ui_value) 172 if ui_.ui_active:
173 baseui.setconfig(ui_.ui_section, ui_.ui_key, ui_.ui_value) 173 log.debug('settings ui from db[%s]%s:%s', ui_.ui_section, ui_.ui_key, ui_.ui_value)
174 baseui.setconfig(ui_.ui_section, ui_.ui_key, ui_.ui_value)
174 175
175 176
176 return baseui 177 return baseui
177 178
178 179