-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Norjee a écrit :
> I'm afraid your solution only works when using the development server,
> and even then when used in auto_reload mode.
You are in true.

> I think the easiest solution is to simply execute the functions
> interfacing with pylucene in their own thread. something like:
> def search(query):
>  - delegate work to new pylucene thread
>  - join it with current thread
>  - do something with result
> 
> I guess you could even create a decorator for such functions
> interfacing with pylucene..

It's didn't work for me. Do you have a succes with this ?

I do some test for pylucene.
My results :
pylucene + django without mod-python : succes here.
http://www.1et0.org/admin/db/pylucene/django-without-mod-python

I test PyLucene.PythonThread.
It's work with thread and django shell, but crash with mod_python.

I test JvAttachCurrentThread
(I make a patch for pylucene for add the wrapper)
http://www.1et0.org/admin/db/pylucene/trypatch/patch.txt
It's work with thread and django shell, but crash with mod_python.

More info about my test here
http://www.1et0.org/admin/db/pylucene/trypatch

my sample test thread are here :
testthread.py : thread simple (error with shell, error with mod_python)
testthread2.py :  thread solution. (ok with shell error with mod_python)
testthread3.py : patch JvAttachCurrentThread2 (ok with shell, error with
mod_python)

My question is :
Anyone have a succes for pylucene, django and mod_python ?
Someone did test pylucene with mod_fastcgi ?

Thx, Xavier.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGEiEA4dg3EDuiPUcRAuy2AJ9WOU+08NYSdyLVOPsxXDkBxm34bgCeKs3o
M9g+RUty6mk1fEXGNwArC8o=
=VWja
-----END PGP SIGNATURE-----

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to