# HG changeset patch # User Daniele Nicolodi # Date 1313343088 -7200 # Node ID e3ca8de73109eaad58c168cb04b96ebfc1486b88 # Parent d799c05caaad7ffbf44d0ba137948b18cb1f2d47 Fix breakage found by unit test. diff -r d799c05caaad -r e3ca8de73109 src/ltpdarepo/views/profile.py --- 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)