From a697af13ac0a46c9b1903efb715e3a84c0135b8d Mon Sep 17 00:00:00 2001 From: Massimo Di Pierro Date: Sat, 31 Dec 2011 12:03:30 -0600 Subject: [PATCH] issue 587, thanks thomas.dallagnese --- VERSION | 2 +- gluon/contrib/login_methods/extended_login_form.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index c5974c86..f8062071 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 1.99.4 (2011-12-31 12:00:38) stable +Version 1.99.4 (2011-12-31 12:03:17) stable diff --git a/gluon/contrib/login_methods/extended_login_form.py b/gluon/contrib/login_methods/extended_login_form.py index f7d88ca0..26e105b1 100644 --- a/gluon/contrib/login_methods/extended_login_form.py +++ b/gluon/contrib/login_methods/extended_login_form.py @@ -6,7 +6,7 @@ ExtendedLoginForm is used to extend normal login form in web2py with one more lo So user can choose the built-in login or extended login methods. """ -from gluon.html import DIV +from gluon import current, DIV class ExtendedLoginForm(object): """ @@ -86,7 +86,8 @@ class ExtendedLoginForm(object): Otherwise it will render the normal login form combined with alt_login_form.login_form. """ - request = self.auth.environment.request + + request = current.request args = request.args if (self.signals and