From: Titus B. <ti...@ca...> - 2002-11-25 18:08:55
|
-> I'm trying to use your Quixote adapter. I've put off asking for -> help, trying to push myself to learn enough about Quixote's -> execution model so that I could figure this out for myself. Well, -> I think I do understand more, but still could not figure this setup -> out for myself. So a few questions: -> -> I put the adapter in: -> -> aolserver/servers/server1/modules/python/handleQuixote.py -> -> Right? It needs to be in PYTHONPATH, or PythonPath, or some place where it can be imported. -> Now, what should I do with each of: -> -> import handleQuixote -> handler = handleQuixote.Handler(base_url, app) -> -> Do I put it into a Quixote driver script? Something like the -> following in aolserver/servers/server1/pages/qtest1.cgi? -> -> #!/usr/bin/env python -> -> from quixote import enable_ptl, Publisher -> import handleQuixote -> -> enable_ptl() -> app = Publisher('qtest1') -> app.read_config("qtest1.conf") -> app.setup_logs() -> handler = handleQuixote.Handler('qtest1', app) -> -> Is that right? This also needs to go into an importable file, NOT a CGI script. -> If so, where do I put: -> -> handler.handle(conn) -> -> And is conn what I'd get from calling: -> -> conn = Ns.GetConn() handler.handle should be called directly from PyWX; the configuration line looks like this: ns_section "ns/server/${servername}/module/pywx/pool/thread" ns_param Map "* /canal/* handler.handle" (for mapping '/canal' into Quixote). -> Perhaps you could send me your latest Quixote PyWX adapter. I -> notice that the version I have calls: -> -> ns_setup.create_cgi_environ(conn, os.environ) -> -> This was missing from the version of modules/python/ns_setup.py. I -> I down-loaded the CVS version of PyWX, and found it in that version -> of ns_setup.py. Is that what I should be using? -> -> In case it matters, I'm using: -> -> Quixote-0.5.1 -> aolserver-3.5.1-src -> PyWX from CVS -> Libranet Debian GNU/Linux - Linux 2.4.19 -> -> Thanks in advance for help. I'll check in the version I'm using with my latest Cartwheel stuff once I verify that it actually works with the latest CVS version of Quixote; it requires Quixote out of CVS, because I had to <sigh> modify Quixote to support multiple threads of execution. Attached are two files: my development environment config for Cartwheel, and the quixote handler I'm using in it. Thanks for slogging through all of this -- you're shaming me publicly enough that I may do something about it ;). cheers, --titus |