Mercurial > kallithea
comparison pylons_app/controllers/admin/settings.py @ 396:9416269860c9
little css update, and flash messages
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Fri, 06 Aug 2010 02:49:53 +0200 |
parents | e8af467b5a60 |
children | 3ed2d46a2ca7 |
comparison
equal
deleted
inserted
replaced
395:e8af467b5a60 | 396:9416269860c9 |
---|---|
173 self.sa.add(hgsettings2) | 173 self.sa.add(hgsettings2) |
174 self.sa.add(hgsettings3) | 174 self.sa.add(hgsettings3) |
175 self.sa.add(hgsettings4) | 175 self.sa.add(hgsettings4) |
176 self.sa.commit() | 176 self.sa.commit() |
177 | 177 |
178 h.flash(_('Updated application settings'), | 178 h.flash(_('Updated mercurial settings'), |
179 category='success') | 179 category='success') |
180 | 180 |
181 except: | 181 except: |
182 log.error(traceback.format_exc()) | 182 log.error(traceback.format_exc()) |
183 h.flash(_('error occured during updating application settings'), | 183 h.flash(_('error occured during updating application settings'), |
251 _form = UserForm(edit=True, old_data={'user_id':uid})() | 251 _form = UserForm(edit=True, old_data={'user_id':uid})() |
252 form_result = {} | 252 form_result = {} |
253 try: | 253 try: |
254 form_result = _form.to_python(dict(request.POST)) | 254 form_result = _form.to_python(dict(request.POST)) |
255 user_model.update_my_account(uid, form_result) | 255 user_model.update_my_account(uid, form_result) |
256 h.flash(_('Your account was updated succesfully'), category='success') | 256 h.flash(_('Your account was updated succesfully'), |
257 category='success') | |
257 | 258 |
258 except formencode.Invalid as errors: | 259 except formencode.Invalid as errors: |
259 #c.user = self.sa.query(User).get(c.hg_app_user.user_id) | 260 #c.user = self.sa.query(User).get(c.hg_app_user.user_id) |
260 return htmlfill.render( | 261 return htmlfill.render( |
261 render('admin/users/user_edit_my_account.html'), | 262 render('admin/users/user_edit_my_account.html'), |