comparison rhodecode/lib/base.py @ 4045:9b4ba12ef8c3

Add ini option to controll custom advanced hooks settings
author Marcin Kuzminski <marcin@python-works.com>
date Thu, 27 Jun 2013 00:47:15 +0200
parents cdf10b3df899
children 3b136af34329
comparison
equal deleted inserted replaced
4044:af733fa965b0 4045:9b4ba12ef8c3
277 c.visual.show_version = str2bool(rc_config.get('rhodecode_show_version')) 277 c.visual.show_version = str2bool(rc_config.get('rhodecode_show_version'))
278 278
279 ## INI stored 279 ## INI stored
280 self.cut_off_limit = int(config.get('cut_off_limit')) 280 self.cut_off_limit = int(config.get('cut_off_limit'))
281 c.visual.allow_repo_location_change = str2bool(config.get('allow_repo_location_change', True)) 281 c.visual.allow_repo_location_change = str2bool(config.get('allow_repo_location_change', True))
282 c.visual.allow_custom_hooks_settings = str2bool(config.get('allow_custom_hooks_settings', True))
282 283
283 c.repo_name = get_repo_slug(request) # can be empty 284 c.repo_name = get_repo_slug(request) # can be empty
284 c.backends = BACKENDS.keys() 285 c.backends = BACKENDS.keys()
285 c.unread_notifications = NotificationModel()\ 286 c.unread_notifications = NotificationModel()\
286 .get_unread_cnt_for_user(c.rhodecode_user.user_id) 287 .get_unread_cnt_for_user(c.rhodecode_user.user_id)