Sorry David,
I reinstall scgi 1.7, quixote 2.1, try some other method with wsgi.
This only one success:
python simple_server.py \
--factory=quixote.demo.altdemo.create_publisher \
--host="192.168.0.10" --port=3000
http://192.168.0.10:3000/
and all other trouble.
I do not understand howto/setting up run various wsgi with Quixote.
Has someone a step by step recipe for wsgi and/or fcgi/lighttpd?
I know bot require scgi.
cheers
nora
David Binger schrieb:
> In my previous response on this thread, I suggested that
> a patch should be made to _q_traverse() when I meant to
> say try_publish().
>
> Here is the version of Publisher.try_publish() that I think
> might be helpful:
>
> def try_publish(self, request):
> """(request : HTTPRequest) -> object
>
> The master method that does all the work for a single request.
> Exceptions are handled by the caller.
> """
> self.start_request()
> path = request.get_environ('PATH_INFO', '')
> # from pprint import pformat; print pformat(request.environ)
> if path[:1] != '/':
> return redirect(
> request.get_environ('SCRIPT_NAME', '') + '/' + path,
> permanent=True)
> components = path[1:].split('/')
> output = self.root_directory._q_traverse(components)
> # The callable ran OK, commit any changes to the session
> self.finish_successful_request()
> return output
>
> Also, and perhaps more useful here, the scgi_server.py program should
> probably be started with --script-name=/scgi-test so that it will
> patch up the incorrect values in the environment that comes from
> lighttpd.
>
> _______________________________________________
> Quixote-users mailing list
> Quixote-users@mems-exchange.org
> http://mail.mems-exchange.org/mailman/listinfo/quixote-users
>
>