From: Dave K. <dku...@cu...> - 2002-11-21 05:10:58
|
Titus - 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? 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? If so, where do I put: handler.handle(conn) And is conn what I'd get from calling: conn = Ns.GetConn() From looking at ns_setup.py, it looks like conn should be an PyWX/Ns thing, not a Quixote object. 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. - Dave -- Dave Kuhlman dku...@re... http://www.rexx.com/~dkuhlman |