Mercurial > public > src > rhodecode
diff pylons_app/controllers/users.py @ 65:3f65447f6c02
Small fix for data display
author | Marcin Kuzminski <marcin@python-blog.com> |
---|---|
date | Sat, 10 Apr 2010 16:45:13 +0200 |
parents | 25e516447a33 |
children | 9a2affee4a45 |
line wrap: on
line diff
--- a/pylons_app/controllers/users.py Sat Apr 10 16:44:47 2010 +0200 +++ b/pylons_app/controllers/users.py Sat Apr 10 16:45:13 2010 +0200 @@ -68,9 +68,8 @@ try: new_user = self.sa.query(Users).get(id) - new_user.active = params.get('active') + new_user.active = params.get('active', False) new_user.username = params.get('username') - print params if params.get('new_password'): new_user.password = crypt.crypt(params.get('new_password'), '6a') self.sa.add(new_user) @@ -106,7 +105,7 @@ """GET /users/id/edit: Form to edit an existing item""" # url('edit_user', id=ID) c.user = self.sa.query(Users).get(id) - + print c.user.__dict__ return htmlfill.render( render('/user_edit.html'), defaults=c.user.__dict__,