# HG changeset patch # User Marcin Kuzminski # Date 1270910713 -7200 # Node ID 3f65447f6c0298cb2bc50793b26e61bf16aa15a2 # Parent 08707974eae42562eac331f535d60f898bef202f Small fix for data display diff -r 08707974eae4 -r 3f65447f6c02 pylons_app/controllers/users.py --- 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__,