comparison pylons_app/controllers/admin/settings.py @ 473:6b934c9607e7 celery

Improved testing scenarios. Made test env creator Fixed hg_model error message some other tweeks and fixes Models fixe for uniq email, and removed some extra not needed imports from model main module
author Marcin Kuzminski <marcin@python-works.com>
date Mon, 13 Sep 2010 01:23:58 +0200
parents 3fc3ce53659b
children 460ad816820d
comparison
equal deleted inserted replaced
472:91292686c1ed 473:6b934c9607e7
104 h.flash(_('Repositories sucessfully rescanned'), category='success') 104 h.flash(_('Repositories sucessfully rescanned'), category='success')
105 105
106 if setting_id == 'whoosh': 106 if setting_id == 'whoosh':
107 repo_location = get_hg_ui_settings()['paths_root_path'] 107 repo_location = get_hg_ui_settings()['paths_root_path']
108 full_index = request.POST.get('full_index',False) 108 full_index = request.POST.get('full_index',False)
109 task = run_task(tasks.whoosh_index,True,repo_location,full_index) 109 task = run_task(tasks.whoosh_index,repo_location,full_index)
110 110
111 h.flash(_('Whoosh reindex task scheduled'), category='success') 111 h.flash(_('Whoosh reindex task scheduled'), category='success')
112 if setting_id == 'global': 112 if setting_id == 'global':
113 113
114 application_form = ApplicationSettingsForm()() 114 application_form = ApplicationSettingsForm()()