[web2py] Re: using janrain and normal registration

2012-03-22 Thread Hassan Alnatour
its not redirecting at all and i changed the URL to URL('default', 'user', args='profile') but still nothing is happening ,, what to do ??!

[web2py] Re: using janrain and normal registration

2012-03-22 Thread Anthony
> > if auth.user and not auth.user.complete_registration: > if not (request.controller,request.function) == > ('default','user'): > redirect(URL('default','user/profile')) > Are you getting an error, or is it just not redirecting at all? In either case, change the URL call to URL

[web2py] Re: using janrain and normal registration

2012-03-22 Thread Hassan Alnatour
It works but now when anyone registers with janrain his data is messing so i used this code but its not redirecting : auth.settings.extra_fields['auth_user']= [ Field('Country'), Field('City'), Field('gender',requires=IS_IN_SET(genders,zero=None)), Field('complete_registration',default=

[web2py] Re: using janrain and normal registration

2012-03-22 Thread Anthony
> > auth.settings.login_form = ExtendedLoginForm(request,auth, other_form) > Looks like the book is not up-to-date -- if you're using the current web2py, I think the above should be: auth.settings.login_form = ExtendedLoginForm(auth, other_form) Anthony