[Webware-devel] [dbutils] threading.local cleaned by wsgi server

2008-10-06 Thread William Dode
Hi, With python >= 2.4 you use threading.local in PersistentDB, but with some server (mod_wsgi) threading.local is not kept between requests because of the C implementation. We can also imagine that somes wsgi server will clean threading.local. If we force to use the python implementation it wo

Re: [Webware-devel] [dbutils] threading.local cleaned by wsgi server

2008-10-07 Thread William Dode
On 06-10-2008, Christoph Zwerschke wrote: > William Dode schrieb: >> With python >= 2.4 you use threading.local in PersistentDB, but with >> some server (mod_wsgi) threading.local is not kept between requests >> because of the C implementation. We can also imagine that so

Re: [Webware-devel] [dbutils] threading.local cleaned by wsgi server

2008-10-15 Thread William Dode
On 12-10-2008, Christoph Zwerschke wrote: > William Dode schrieb: >> Maybe the python implementation by default and an option tu use the >> C implementation (did you bench it ?). Like that most of the people will >> have nothing to do. > > If I measured correctly, the

Re: [Webware-devel] [dbutils] threading.local cleaned by wsgi server

2008-10-22 Thread William Dode
On 18-10-2008, Christoph Zwerschke wrote: > William Dode schrieb: >> Then i have to set closeable when i create it ? >> What i would like is to have closeable set to False, and decide *after* >> (for maintenance of the db) that i want a brut close. > > You can set clos