diff pylons_app/lib/utils.py @ 425: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
line wrap: on
line diff
--- a/pylons_app/lib/utils.py	Fri Aug 06 01:52:17 2010 +0200
+++ b/pylons_app/lib/utils.py	Fri Aug 06 02:03:22 2010 +0200
@@ -169,8 +169,9 @@
     elif read_from == 'db':
         hg_ui = get_hg_ui_cached()
         for ui_ in hg_ui:
-            log.debug('settings ui from db[%s]%s:%s', ui_.ui_section, ui_.ui_key, ui_.ui_value)
-            baseui.setconfig(ui_.ui_section, ui_.ui_key, ui_.ui_value)
+            if ui_.ui_active:
+                log.debug('settings ui from db[%s]%s:%s', ui_.ui_section, ui_.ui_key, ui_.ui_value)
+                baseui.setconfig(ui_.ui_section, ui_.ui_key, ui_.ui_value)
         
     
     return baseui