Avoid passing db to class in modules because I found strange to pass so
much args to class... I use to do it because I wasn't know if it was thread
safe... There is this post on stackoverflow :
http://stackoverflow.com/questions/11959719/web2py-db-is-not-defined

Richard


On Thu, Jul 18, 2013 at 11:20 AM, Eduardo Cruz <educr...@gmail.com> wrote:

> Why you want to do this?
>
> El jueves, 18 de julio de 2013 10:49:42 UTC-4, Richard escribió:
>
>> Hello,
>>
>> Is it safe to do :
>>
>> from gluon import current
>> current.db = db
>>
>> And if so, why is db not already available in current by default?
>>
>> Thanks
>>
>> Richard
>>
>  --
>
> ---
> 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/groups/opt_out.
>
>
>

-- 

--- 
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/groups/opt_out.


Reply via email to