# HG changeset patch # User Marcin Kuzminski # Date 2010-07-23 22:53:03 # Node ID db187729c40c2cb0529a075accf5148c5f6cc9f7 # Parent 339d1368c10d0faae153021c9fa8cd5deb5c7b04 new style error display for login diff --git a/pylons_app/controllers/login.py b/pylons_app/controllers/login.py --- a/pylons_app/controllers/login.py +++ b/pylons_app/controllers/login.py @@ -2,7 +2,7 @@ # encoding: utf-8 # login controller for pylons # Copyright (C) 2009-2010 Marcin Kuzminski - +# # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; version 2 @@ -51,10 +51,11 @@ class LoginController(BaseController): return redirect(url('hg_home')) except formencode.Invalid as errors: - c.form_errors = errors.error_dict return htmlfill.render( render('/login.html'), defaults=errors.value, + errors=errors.error_dict or {}, + prefix_error=False, encoding="UTF-8") return render('/login.html')