Mercurial > hg > ltpdarepo
changeset 70:e3ca8de73109
Fix breakage found by unit test.
author | Daniele Nicolodi <daniele@grinta.net> |
---|---|
date | Sun, 14 Aug 2011 19:31:28 +0200 |
parents | d799c05caaad |
children | 543f68b3a8f0 |
files | src/ltpdarepo/views/profile.py |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ltpdarepo/views/profile.py Sun Aug 14 19:31:28 2011 +0200 +++ b/src/ltpdarepo/views/profile.py Sun Aug 14 19:31:28 2011 +0200 @@ -14,7 +14,7 @@ @require('user') def view(username): with permission('view', 'user', username): - user = User().load(username) + user = User.load(username) if user is None: # not found abort(404) @@ -25,7 +25,7 @@ @require('user') def edit(username): with permission('edit', 'user', username): - user = User().load(username) + user = User.load(username) if user is None: # not found abort(404) @@ -43,14 +43,14 @@ @require('user') def password(username): with permission('edit', 'user', username): - user = User().load(username) + user = User.load(username) if user is None: # not found abort(404) form = IPassword() if request.method == 'POST' and form.validate(): # set password - user.passwd(username, form.password.data) + user.passwd(form.password.data) flash('Password changed.') return redirect(url_for('user.view', username=username)) return render_template('users/password.html', form=form)