[pylucene-dev] PyLucene in CherryPy

Andi Vajda vajda at osafoundation.org
Wed Jun 28 02:25:06 PDT 2006


On Wed, 28 Jun 2006, Lee McFadden wrote:

> Yes.  At the moment PyLucene won't work within a CherryPy (and
> therefore TG) app due to the issues with threading.  There is
> currently no work around (that I know of at least) other than running
> PyLucene seperately.

Is CherryPy using Twisted ? If so, there sure is a way. We've been able to do
this in Chandler by customizing the thread pool.

http://svn.osafoundation.org/chandler/trunk/chandler/parcels/osaf/framework/twisted/TwistedThreadPool.py

The RepositoryThread class used in this file is a subclass of 
PyLucene.PythonThread.

Andi..


More information about the pylucene-dev mailing list