Re: [web2py] Re: Janrain Engage OR normal register/login

2011-12-30 Thread Thomas Dall'Agnese
It works if we remove the first parameter (request) in the 
ExtendedLoginForm:
auth.settings.login_form = ExtendedLoginForm(auth, other_form, 
signals=['token'])


Re: [web2py] Re: Janrain Engage OR normal register/login

2011-12-30 Thread Thomas Dall'Agnese
Another problem with the slices:

1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.

Traceback (most recent call last):
  File 
"/windows/Users/Thomas/Dropbox/appz/2011/dotcloud_web2py/gluon/restricted.py", 
line 204, in restricted
exec ccode in environment
  File 
"/windows/Users/Thomas/Dropbox/appz/2011/dotcloud_web2py/applications/fansubcheck/controllers/default.py"
 , 
line 238, in 
  File 
"/windows/Users/Thomas/Dropbox/appz/2011/dotcloud_web2py/gluon/globals.py", 
line 172, in 
self._caller = lambda f: f()
  File 
"/windows/Users/Thomas/Dropbox/appz/2011/dotcloud_web2py/applications/fansubcheck/controllers/default.py"
 , 
line 32, in user
auth(),
  File 
"/windows/Users/Thomas/Dropbox/appz/2011/dotcloud_web2py/gluon/tools.py", line 
1141, in __call__
return getattr(self,args[0])()
  File 
"/windows/Users/Thomas/Dropbox/appz/2011/dotcloud_web2py/gluon/tools.py", line 
1766, in login
return cas.login_form()
  File 
"/windows/Users/Thomas/Dropbox/appz/2011/dotcloud_web2py/gluon/contrib/login_methods/extended_login_form.py",
 line 89, in login_form
request = self.auth.environment.request
AttributeError: 'NoneType' object has no attribute 'request'


Is there any code example for web2py 1.99,4 to have the 2 different login 
types concurrently? (Janrain AND normal)


Re: [web2py] Re: Janrain Engage OR normal register/login

2011-12-30 Thread Thomas Dall'Agnese
Thanks Anthony.

The books seems to be not up-to-date:


TypeError: __init__() got multiple values for keyword argument 'signals'


I will try the slice 124, but it looks old too.

Best Regards,

Thomas


On Thu, Dec 29, 2011 at 11:53 PM, Anthony  wrote:

> See "Multiple login forms" at the end of this section:
> http://web2py.com/books/default/chapter/29/9#Other-login-methods-and-login-forms.
> There's also:
>
> http://www.web2pyslices.com/slices/take_slice/124
> http://www.web2pyslices.com/slices/take_slice/28
>
> Anthony
>
>
> On Thursday, December 29, 2011 7:37:18 AM UTC-5, Thomas Dall'Agnese wrote:
>>
>> Hi,
>>
>> Is it possible to allow normal login in addition to login via RPX
>> (janrain engage)?
>> If I activate RPX, I cannot register through the "normal" process.
>> Is it possible to keep the "normal" login as well as the RPX one?
>>
>> Best regards,
>>
>> Thomas
>>
>