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 somes wsgi 
> server will clean threading.local.
> If we force to use the python implementation it works (and there is 
> a python implementation in PersistentDB.py)

Thanks for making me aware of that. So if you change PersistentDB to do 
"from _threading_local import local" instead of "from threading import 
local" or if you raise an ImportError so that the implementation in 
PersistentDB is used, then it works?

That means we should probably make this configurable or always use the 
Python implementation (but the C implementation is faster). Other ideas?

By the way, a pre-release of DBUtils 1.0 is available at
http://www.webwareforpython.org/downloads/DBUtils/DBUtils-1.0pre.tar.gz

If there are other things to consider for DBUtils 1.0, let me know.

-- Christoph

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Webware-devel mailing list
Webware-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-devel

Reply via email to