HI! I can not use db.auth._rname before auth.define_tables and auth.define_tables does not work because it does not find the tables since they are created in a different scheme than default.
Currently I use customized tables but I wanted to stop doing it since it is more difficult to maintain if the definitions change in web2py and as it says in the book "Another way to do this, although *not really recommended*, consists of defining your auth tables yourself." it is not a good idea. Any other idea? Maybe in user settings? Thanks! 2018-07-13 16:58 GMT-03:00 Anthony <[email protected]>: > You can try: > > db.auth_user._rname = ... > db.auth_user.first_name._rname = ... > > Or you can code custom table definitions, as described here: > http://web2py.com/books/default/chapter/29/09/access- > control#Customizing-Auth > > Anthony > > > On Friday, July 13, 2018 at 3:36:51 PM UTC-4, fiubarc wrote: >> >> Hello, somebody knows how to set rname on auth tables?? It is possible >> without redefine each table?? >> >> I need it because I use Postgres and users in a separete schema. >> >> Thanks!! >> > -- > 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. > -- 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.

