Just for testing, I removed pydal.objects.Table from the function header 
and changed the line inside the function from

row: pydal.objects.Row = table[rec_id]

to

row: pydal.objects.Table = table[rec_id]

without importing anything from pydal or pydal.objects, anywhere in 
controllers, models or modules.

And it worked without any problem.

My conclusion is that either web2py is importing pyday.objects automatically 
inside the function, but not when it calls (loads) the function, or web2py is 
not showing the errors inside the function.

Any thoughts?



sexta-feira, 8 de Março de 2019 às 17:40:41 UTC, Leonel Câmara escreveu:
>
> Weird because that doesn't work for me if I don't import pydal so I'm 
> guessing you have a import pydal.objects.Row somewhere in your models. That 
> said you can just use DAL.Table and DAL.Row which are imports web2py does 
> make for you.
>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to