Thank you! That bit of code was the key. The wizard definitely does NOT work. I had to manually copy/paste this code into db.py to get it working.
Can you point me in the right direction of the wizard's files so I can take a look at fixing this bug? Also, what's the best way to contribute to the documentation? I'd like to point out that "domain" is not actually the full domain as defined by Janrain's documentation, but your domain's application name. Thanks again, Matthew On Jul 31, 10:57 pm, Anthony <abasta...@gmail.com> wrote: > 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