Is this really in a module?  Have you imported auth and set it to the 
current auth before the line you specified?

I don't think auth works within a module by default.

-Jim

On Friday, March 30, 2018 at 9:01:45 AM UTC-5, Maurice Waka wrote:
>
> I have been getting this error in the last few days but somehow, with 
> restarting my comp, the error is sorted out. Every time I create a new 
> module and test it in the app, the error appears.
> This is the latest, and this time, even with restarting the system, the 
> error below appears and I cant use the app.
>
> name = [t.reply for t in db(db.post.author == auth.user.id
> ).select(db.post.ALL)][-1]]
>
> AttributeErroe: 'NoneType' object has no attribute 'id'
>
> Kind regards
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to