oh... yes.

Your right... Storage(user=db.auth_user[user]... should fix it.

--
Thadeus





On Sun, May 30, 2010 at 4:56 PM, weheh <[email protected]> wrote:
> Yah. I got it running, thanks. Had to go in thru the admin interface
> to restart.
>
> I think it's related, but I'm using your code from the custom
> auth.login example. You wrote:
>
> user=db.auth_user.insert(...)
>
> session.auth=Storage(user=user,last_visit=request.now,expiration=auth.settings.expiration)
>
> Problem is ... user is an int. I think you need to commit first then
> query the db for the auth_user Storage class and then pass that back
> to Storage to set the session.auth. Yes?
>

Reply via email to