Mercurial > kallithea
comparison rhodecode/controllers/admin/settings.py @ 832:634596f81cfd beta
new improved models with helper functions for easier data fetching
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 11 Dec 2010 00:36:33 +0100 |
parents | 9caca00de2b0 |
children | 5f7731e3ab4d |
comparison
equal
deleted
inserted
replaced
831:165a97509a15 | 832:634596f81cfd |
---|---|
256 if c.user.username == 'default': | 256 if c.user.username == 'default': |
257 h.flash(_("You can't edit this user since it's" | 257 h.flash(_("You can't edit this user since it's" |
258 " crucial for entire application"), category='warning') | 258 " crucial for entire application"), category='warning') |
259 return redirect(url('users')) | 259 return redirect(url('users')) |
260 | 260 |
261 defaults = c.user.__dict__.copy() | 261 defaults = c.user.get_dict() |
262 return htmlfill.render( | 262 return htmlfill.render( |
263 render('admin/users/user_edit_my_account.html'), | 263 render('admin/users/user_edit_my_account.html'), |
264 defaults=defaults, | 264 defaults=defaults, |
265 encoding="UTF-8", | 265 encoding="UTF-8", |
266 force_defaults=False | 266 force_defaults=False |