Mercurial > public > src > rhodecode
diff pylons_app/lib/db_manage.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 | 55377fdc1fc6 |
children | 3ed2d46a2ca7 |
line wrap: on
line diff
--- a/pylons_app/lib/db_manage.py Fri Aug 06 01:52:17 2010 +0200 +++ b/pylons_app/lib/db_manage.py Fri Aug 06 02:03:22 2010 +0200 @@ -90,11 +90,16 @@ log.error('You entered wrong path') sys.exit() - hooks = HgAppUi() - hooks.ui_section = 'hooks' - hooks.ui_key = 'changegroup' - hooks.ui_value = 'hg update >&2' + hooks1 = HgAppUi() + hooks1.ui_section = 'hooks' + hooks1.ui_key = 'changegroup.update' + hooks1.ui_value = 'hg update >&2' + hooks2 = HgAppUi() + hooks2.ui_section = 'hooks' + hooks2.ui_key = 'changegroup.repo_size' + hooks2.ui_value = 'python:pylons_app.lib.hooks.repo_size' + web1 = HgAppUi() web1.ui_section = 'web' web1.ui_key = 'push_ssl' @@ -131,7 +136,8 @@ hgsettings2.app_settings_value = 'hg-app' try: - #self.sa.add(hooks) + self.sa.add(hooks1) + self.sa.add(hooks2) self.sa.add(web1) self.sa.add(web2) self.sa.add(web3)