That will go away. Web2py already has a thread local singleton and it
will be used in future version to allow any module to do something
like:

from web2py import g

g.request
g.response
g.db
etc.

without passing globals()

On May 2, 3:30 pm, Bruno Rocha <rochacbr...@gmail.com> wrote:
> On Mon, May 2, 2011 at 5:22 PM, Anthony <abasta...@gmail.com> wrote:
> > On Monday, May 2, 2011 4:12:25 PM UTC-4, rochacbruno wrote:
>
> >> I am not sure if we can have classes in modules to define tables and them
> >> pass DAL, response, request etc.. I need to test this approach.
>
> > That's how Auth and Crud work, no?
>
> You are right, but in this case we need to pass globals() and 'db' objects,
> how could the performance effect if for every module we pass globals() and
> db ? and we need to take care of reloading.

Reply via email to