I'm trying to access records stored in the database created by
Janrain. I have the following code:

return dict(message='Hello' + str(db().auth_user.first_name))

I know this is obviously incorrect because I get an error ticket
issued:

File "/home/blake/Depaul/web2py.dev/web2py/applications/calendar/
controllers/default.py", line 21, in index
    return dict(message='Hello' + str(db.auth_user().first_name))
AttributeError: 'NoneType' object has no attribute 'first_name'

I just don't know what the right way to do this is. Any thoughts?
Should I be using the Janrain api instead of querying my databases?
How would I do that?

Reply via email to