durusmail: quixote-users: scgi vs WSGIKit
scgi vs WSGIKit
2005-04-16
Ioan Coman (3 parts)
2005-04-16
2005-04-17
2005-04-17
2005-04-17
2005-04-17
scgi vs WSGIKit
Ioan Coman
2005-04-17
> On Apr 16, 2005, at 5:41 PM, Ioan Coman wrote:
>>
>> I just adapted a script for calling quixote using scgi protocol.
>> The latest scgi version (1.2) is not working with quixote so I made a
>> script (see attached files)
>>
>
> I'm surprised at this since we run all of our applications with scgi and
> quixote.
> Can you describe the context and the changes that were required?
>
After installing scgi package
In /usr/local/lib/pythonXXX/site-packages/scgi there are two scripts
(quixote_handler.py and scgi_server.py)

1) scgi_server.py this is generic (base) script - is ok; I'll leave it
alone.


2) quixote_handler.py - this script is expecting a publisher_class (default
publish.Publisher)
and a root_namespace (default quixote.demo)
I is strange that want this ... I was expecting to provide a function (a
factory) with value
like "quixote.demo.create_publisher"
But the --help of script suggest something else (fork or not, pid, log, max
children, port, user)
.... where is the argument for factory? I'd like to run 3-4 scgi instances
from /etc/rc.local start BSD script
so I made my own script (see previous message attachements).



Question: How do I call quixote_handler.py  from scgi package to start with
quixote.demo.create_publisher
or my package: wpos.demo.create_publisher or any other quixote application ?

Ioan.
http://eok.ro/


reply