On Friday, May 5, 2017 at 12:58:09 PM UTC-4, Pierre wrote: > > one way to access T from a module : > > in db.py: > > from gluon import current > current.T=T >
There is no need for the above code, as the framework already sets current.T for you (as well as current.request, etc.). > in module: > > T=current.T > Yes, but don't do that at the top level of the module or as a class attribute -- only within a function or method. Anthony -- 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.

