Hi,
Im trying to use a module file inside /modules/ folder but keep getting
this error.
failed to reload module because:
ImportError('No module named mdplenus.modules.test',)
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source
if all is ok, restart web2py
Em dom., 14 de jun. de 2020 às 00:35, patito feo
escreveu:
> Hi,
>
> Im trying to use a module file inside /modules/ folder but keep getting
> this error.
>
>
> failed to reload module because:
>
> ImportError('No module named mdplenus.modules.test',)
>
> --
>
I use decorator for reduce count of sql queries for logged in users like
that:
def is_info(fun):
def decorated():
if session.is_info is None:
entrant = db(db.a_persons.WEB_ID == auth.user_id).select(
db.a_persons.FILE_CODE0, db.a_persons.F, db.a_persons.I,
Yes, I thought about it, but if auth.user_id is None for me in auth.user.id
I got error: 'NoneType' object has no attribute
'id'.
суббота, 13 июня 2020 г., 15:40:21 UTC+3 пользователь Jim S написал:
>
> Have you tried auth.user.id?
>
> -Jim
>
> On Saturday, June 13, 2020 at 1:34:04 AM UTC-5,
Thanks Dave!
El El sáb, 16 may 2020 a las 23:18, Dave S escribió:
>
>
> On Friday, May 8, 2020 at 12:41:16 PM UTC-7, Jonsubs wrote:
>>
>> Thanks!
>>
>> El El sáb, 2 may 2020 a las 3:10, Andrew Rogers
>> escribió:
>>
>>> Can't help you Jon sorry. I tried to upload a while back but got a
>>>
Have you tried auth.user.id?
-Jim
On Saturday, June 13, 2020 at 1:34:04 AM UTC-5, Константин Комков wrote:
>
> I use decorator for reduce count of sql queries for logged in users like
> that:
> def is_info(fun):
> def decorated():
> if session.is_info is None:
> entrant
Then either you're not loved in our not running in a controller function
I'd guess
On Sat, Jun 13, 2020, 10:01 AM Константин Комков
wrote:
> Yes, I thought about it, but if auth.user_id is None for me in
> auth.user.id I got error: 'NoneType' object has
> no attribute 'id'.
>
> суббота, 13
7 matches
Mail list logo