I do not understand. this:

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


is not a valid Python code. Also, as you say pydal is not imported. 
Moreover Row is an internal class, you should not try redefine it.
Can you explain what you are trying to achieve? Maybe there is a better way.

On Friday, 8 March 2019 09:12:21 UTC-8, João Matos wrote:
>
> Didn't know that, will correct auth.requires_login with auth.is_logged_in.
>
> No I did not import pydal.
>
> If I remove the type specification from the function header it works, even 
> when I'm also mentioning pydal inside the function in the line
>
>  row: pydal.objects.Row = table[rec_id]
> which means pydal is imported by web2py.
>
>
>
>
> sexta-feira, 8 de Março de 2019 às 17:06:38 UTC, Leonel Câmara escreveu:
>>
>> Note that requires_login is meant to be used as a decorator, you should 
>> be using auth.is_logged_in() 
>>
>> Did you import pydal?
>>
>

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