Mercurial > kallithea
comparison rhodecode/controllers/admin/users.py @ 860:5f7731e3ab4d beta
fixed spelling mistakes, and some minor docs bugs
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 18 Dec 2010 16:39:46 +0100 |
parents | f67868ef6cd2 |
children | 62c04c5cc971 a3b2b4b4e440 |
comparison
equal
deleted
inserted
replaced
859:e81636a261cf | 860:5f7731e3ab4d |
---|---|
85 errors=errors.error_dict or {}, | 85 errors=errors.error_dict or {}, |
86 prefix_error=False, | 86 prefix_error=False, |
87 encoding="UTF-8") | 87 encoding="UTF-8") |
88 except Exception: | 88 except Exception: |
89 log.error(traceback.format_exc()) | 89 log.error(traceback.format_exc()) |
90 h.flash(_('error occured during creation of user %s') \ | 90 h.flash(_('error occurred during creation of user %s') \ |
91 % request.POST.get('username'), category='error') | 91 % request.POST.get('username'), category='error') |
92 return redirect(url('users')) | 92 return redirect(url('users')) |
93 | 93 |
94 def new(self, format='html'): | 94 def new(self, format='html'): |
95 """GET /users/new: Form to create a new item""" | 95 """GET /users/new: Form to create a new item""" |
142 user_model.delete(id) | 142 user_model.delete(id) |
143 h.flash(_('sucessfully deleted user'), category='success') | 143 h.flash(_('sucessfully deleted user'), category='success') |
144 except (UserOwnsReposException, DefaultUserException), e: | 144 except (UserOwnsReposException, DefaultUserException), e: |
145 h.flash(str(e), category='warning') | 145 h.flash(str(e), category='warning') |
146 except Exception: | 146 except Exception: |
147 h.flash(_('An error occured during deletion of user'), | 147 h.flash(_('An error occurred during deletion of user'), |
148 category='error') | 148 category='error') |
149 return redirect(url('users')) | 149 return redirect(url('users')) |
150 | 150 |
151 def show(self, id, format='html'): | 151 def show(self, id, format='html'): |
152 """GET /users/id: Show a specific item""" | 152 """GET /users/id: Show a specific item""" |