I just found out that I had called a function within the module which was
not supposed to be. That was the bug.

On Fri, 30 Mar 2018, 19:38 Jim S <[email protected]> wrote:

> 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 a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/web2py/bH3KyE3E9bw/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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