On Wednesday, December 14, 2011 11:24:20 PM UTC-5, ニコノコ wrote:
>
> hmm ... I tried auth.user.account_status=db.auth_user[auth.user.id
> ].account_status
>
> , but I get an error:
> AttributeError: 'NoneType' object has no attribute 'account_status'
>

It will only work when there is actually a logged in user, so start with:

if auth.user:
    etc. 

Reply via email to