comparison rhodecode/controllers/admin/settings.py @ 3920:985db7f7b9b2 beta

Added flag to controll option for changing the repos path location from web interface
author Marcin Kuzminski <marcin@python-works.com>
date Thu, 30 May 2013 16:08:14 +0200
parents 36f7562a5919
children 9378d8640a4b
comparison
equal deleted inserted replaced
3919:b367b016ee39 3920:985db7f7b9b2
240 240
241 try: 241 try:
242 sett = RhodeCodeUi.get_by_key('push_ssl') 242 sett = RhodeCodeUi.get_by_key('push_ssl')
243 sett.ui_value = form_result['web_push_ssl'] 243 sett.ui_value = form_result['web_push_ssl']
244 Session().add(sett) 244 Session().add(sett)
245 245 if c.visual.allow_repo_location_change:
246 sett = RhodeCodeUi.get_by_key('/') 246 sett = RhodeCodeUi.get_by_key('/')
247 sett.ui_value = form_result['paths_root_path'] 247 sett.ui_value = form_result['paths_root_path']
248 Session().add(sett) 248 Session().add(sett)
249 249
250 #HOOKS 250 #HOOKS
251 sett = RhodeCodeUi.get_by_key(RhodeCodeUi.HOOK_UPDATE) 251 sett = RhodeCodeUi.get_by_key(RhodeCodeUi.HOOK_UPDATE)
252 sett.ui_active = form_result['hooks_changegroup_update'] 252 sett.ui_active = form_result['hooks_changegroup_update']
253 Session().add(sett) 253 Session().add(sett)