On Sunday, July 31, 2011 7:20:27 PM UTC-4, Matthew wrote: 
>
> 0.py 
>
> settings.login_config = 'domain:api_key'

 
I think the above is supposed to be your domain and Janrain API key, not the 
literal string 'domain:api_key' (you input this in the first step of the 
wizard). However, in this case I don't think it matters, because it appears 
your code does not actually use this setting (see below).
 
 

> db.py (abridged) 
>
> ... 
>
> ######################################################################### 
> ## If you need to use OpenID, Facebook, MySpace, Twitter, Linkedin, 
> etc. 
> ## register with janrain.com, uncomment and customize following 
> from gluon.contrib.login_methods.rpx_account import RPXAccount 
> auth.settings.actions_disabled = \ 
>    ['register','change_password','request_reset_password'] 
> auth.settings.login_form = RPXAccount(request, 
> api_key='xxxxxxxxxxxxxxxxxxxxxx',domain='xxxxxxxxx', 
>    url = "http://localhost:8888/%s/default/user/login"; % 
> request.application)

 
When using the wizard, you shouldn't need to manually uncomment and fill in 
the code above. Instead, the following code should be inserted in db.py for 
you by the wizard:
 
from gluon.contrib.login_methods.rpx_account import RPXAccount
auth.settings.actions_disabled=['register','change_password','request_reset_password']
auth.settings.login_form = RPXAccount(request,
    api_key = settings.login_config.split(':')[-1],
    domain = settings.login_config.split(':')[0],
    url = "http://%s/%s/default/user/login"; % 
(request.env.http_host,request.application))
 
 
Notice this uses settings.login_config to obtain your domain and API key. 
Does your db.py include this code? If not, what version of web2py are you 
using?
 
Anthony
 

Reply via email to