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 [email protected]. For more options, visit https://groups.google.com/d/optout.

