##// END OF EJS Templates
autofix largefiles hggit hgsubversion options if they are not in the database
marcink -
r2844:7b0f8032 beta
parent child Browse files
Show More
@@ -256,14 +256,31 class SettingsController(BaseController)
256
256
257 ## EXTENSIONS
257 ## EXTENSIONS
258 sett = RhodeCodeUi.get_by_key('largefiles')
258 sett = RhodeCodeUi.get_by_key('largefiles')
259 if not sett:
260 #make one if it's not there !
261 sett = RhodeCodeUi()
262 sett.ui_key = 'largefiles'
263 sett.ui_section = 'extensions'
259 sett.ui_active = form_result[_f('extensions_largefiles')]
264 sett.ui_active = form_result[_f('extensions_largefiles')]
260 Session().add(sett)
265 Session().add(sett)
261
266
262 sett = RhodeCodeUi.get_by_key('hgsubversion')
267 sett = RhodeCodeUi.get_by_key('hgsubversion')
268 if not sett:
269 #make one if it's not there !
270 sett = RhodeCodeUi()
271 sett.ui_key = 'hgsubversion'
272 sett.ui_section = 'extensions'
273
263 sett.ui_active = form_result[_f('extensions_hgsubversion')]
274 sett.ui_active = form_result[_f('extensions_hgsubversion')]
264 Session().add(sett)
275 Session().add(sett)
265
276
266 # sett = RhodeCodeUi.get_by_key('hggit')
277 # sett = RhodeCodeUi.get_by_key('hggit')
278 # if not sett:
279 # #make one if it's not there !
280 # sett = RhodeCodeUi()
281 # sett.ui_key = 'hggit'
282 # sett.ui_section = 'extensions'
283 #
267 # sett.ui_active = form_result[_f('extensions_hggit')]
284 # sett.ui_active = form_result[_f('extensions_hggit')]
268 # Session().add(sett)
285 # Session().add(sett)
269
286
General Comments 0
You need to be logged in to leave comments. Login now