Mercurial > kallithea
comparison pylons_app/controllers/admin/users.py @ 537:48be953851fc
extended user logs to create/delete/fork repositories for auditing
some spelling corrections
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 02 Oct 2010 02:56:39 +0200 |
parents | 74b9bed279ae |
children |
comparison
equal
deleted
inserted
replaced
536:39203995f2c4 | 537:48be953851fc |
---|---|
15 # | 15 # |
16 # You should have received a copy of the GNU General Public License | 16 # You should have received a copy of the GNU General Public License |
17 # along with this program; if not, write to the Free Software | 17 # along with this program; if not, write to the Free Software |
18 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, | 18 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
19 # MA 02110-1301, USA. | 19 # MA 02110-1301, USA. |
20 from pylons_app.lib.utils import action_logger | |
20 """ | 21 """ |
21 Created on April 4, 2010 | 22 Created on April 4, 2010 |
22 users controller for pylons | 23 users controller for pylons |
23 @author: marcink | 24 @author: marcink |
24 """ | 25 """ |
69 try: | 70 try: |
70 form_result = login_form.to_python(dict(request.POST)) | 71 form_result = login_form.to_python(dict(request.POST)) |
71 user_model.create(form_result) | 72 user_model.create(form_result) |
72 h.flash(_('created user %s') % form_result['username'], | 73 h.flash(_('created user %s') % form_result['username'], |
73 category='success') | 74 category='success') |
75 #action_logger(self.hg_app_user, 'new_user', '', '', self.sa) | |
74 except formencode.Invalid as errors: | 76 except formencode.Invalid as errors: |
75 return htmlfill.render( | 77 return htmlfill.render( |
76 render('admin/users/user_add.html'), | 78 render('admin/users/user_add.html'), |
77 defaults=errors.value, | 79 defaults=errors.value, |
78 errors=errors.error_dict or {}, | 80 errors=errors.error_dict or {}, |