Hello I just set up Janrain using the 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='....',
domain='......',
url = "http://localhost/%s/default/user/login" % request.application)
I am trying to switch to using Janrain for my app
However I do not know how to get the auth_user field so I can refernce it in
some of my database fields for example
db.define_table('product',
Field('userinfo', db.auth_user, default=auth.user_id, readable=False,
writable=False),
I get an a key error in web2py *confused
Traceback (most recent call last):
File "/home/www-data/web2py/gluon/restricted.py", line 188, in restricted
exec ccode in environment
File "/home/www-data/web2py/applications/Working/models/db.py"
<https://www.suck-o.de/admin/default/edit/Working/models/db.py>, line
72, in <module>
Field('userinfo', db.auth_user, default=auth.user_id,
readable=False, writable=False),
File "/home/www-data/web2py/gluon/sql.py", line 1391, in __getattr__
return dict.__getitem__(self,key)
KeyError: 'auth_user'
any ideas *cheers
and ty :D