durusmail: quixote-users: wsgi_server.py for Quixote
wsgi_server.py for Quixote
2005-04-29
2005-04-30
2005-04-30
2005-04-30
2005-04-30
2005-04-30
2005-04-30
2005-04-30
2005-04-30
2005-04-30
2005-04-30
2005-05-01
2005-05-01
2005-05-01
2005-05-02
2005-05-01
2005-05-01
2005-04-30
2005-04-30
2005-04-30
wsgi_server.py for Quixote
David Binger
2005-04-30
On Apr 30, 2005, at 3:02 PM, Oleg Broytmann wrote:

> On Sat, Apr 30, 2005 at 07:37:37AM -0400, David Binger wrote:
>> hacking Quixote's Publisher.__init__ and get_publisher()
>> to maintain a separate publisher for each thread.
>
>    Like this?
> http://www.mems-exchange.org/software/quixote/Quixote-2.0.tar.gz/
> Quixote-2.0/doc/multi-threaded.txt

Yes.  An alternative is to make the _publisher global hold a
dictionary of thread_id to Publisher instance, and change
get_publisher() to find the right one for the current thread.
I guess it depends on whether or not you want your threads
to share a Publisher instance (and root directory).




reply