Mercurial > kallithea
comparison rhodecode/controllers/admin/settings.py @ 3910:36f7562a5919 beta
Implements #842 RhodeCode version disclosure.
- it's now implemented as visual option in settings
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Tue, 28 May 2013 23:12:31 +0200 |
parents | fe053a42c4ce |
children | 985db7f7b9b2 |
comparison
equal
deleted
inserted
replaced
3909:e87298ccdfdb | 3910:36f7562a5919 |
---|---|
206 | 206 |
207 sett5 = RhodeCodeSetting.get_by_name_or_create('dashboard_items') | 207 sett5 = RhodeCodeSetting.get_by_name_or_create('dashboard_items') |
208 sett5.app_settings_value = \ | 208 sett5.app_settings_value = \ |
209 form_result['rhodecode_dashboard_items'] | 209 form_result['rhodecode_dashboard_items'] |
210 Session().add(sett5) | 210 Session().add(sett5) |
211 | |
212 sett6 = RhodeCodeSetting.get_by_name_or_create('show_version') | |
213 sett6.app_settings_value = \ | |
214 form_result['rhodecode_show_version'] | |
215 Session().add(sett6) | |
211 | 216 |
212 Session().commit() | 217 Session().commit() |
213 set_rhodecode_config(config) | 218 set_rhodecode_config(config) |
214 h.flash(_('Updated visualisation settings'), | 219 h.flash(_('Updated visualisation settings'), |
215 category='success') | 220 category='success') |