On 18 Jul 2013, at 8:32 AM, Massimo Di Pierro
wrote:
> It is safe if used as current is intended to be used (within functions called
> within the same thread).
>
> This is not done by default because you may have
>
>
> db1 = DAL()
> db2 = DAL()
> my_other_db = DAL()
> etc.
Well,
Ok,
Maybe flag this thread with google group as kind of "accept answer" or
something could be useful for orthers
Thanks
Richard
On Thu, Jul 18, 2013 at 11:32 AM, Massimo Di Pierro <
massimo.dipie...@gmail.com> wrote:
> It is safe if used as current is intended to be used (within functions
> c
It is safe if used as current is intended to be used (within functions
called within the same thread).
This is not done by default because you may have
db1 = DAL()
db2 = DAL()
my_other_db = DAL()
etc.
On Thursday, 18 July 2013 09:49:42 UTC-5, Richard wrote:
>
> Hello,
>
> Is it saf
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 1
On 18 Jul 2013, at 7:49 AM, Richard wrote:
> 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?
>
Why do you want to do that?
--
---
You received this message because you are subscribed to the Google Grou
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 me
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 st
7 matches
Mail list logo