[web2py] Re: invalid literal for long() with base 10: when linking 2 tables

2020-06-13 Thread 'Annet' via web2py-users
Hi, I think you'd better reference your store_registration table once by id in the temperature table. Field('store_registration_id', 'reference store_registration', writable= False), In that way you comply with the rule of single_point-of_definition. The way you define your temperatures table,

Re: [web2py] No module named error

2020-06-13 Thread António Ramos
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',) > > -- > Resour

[web2py] No module named error

2020-06-13 Thread patito feo
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

Re: [web2py] Re: How can I get auth.user_id inside my decorator?

2020-06-13 Thread Jim Steil
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 июня

[web2py] Re: How can I get auth.user_id inside my decorator?

2020-06-13 Thread Константин Комков
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, Ко

[web2py] Re: How can I get auth.user_id inside my decorator?

2020-06-13 Thread Jim S
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 =

Re: [web2py] Re: How to debug appadmin CSV uploading

2020-06-13 Thread Jon Subscripted
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 >>> diff