(sorry for the double post)

I try to run web.py with Jython (Jython 2.5rc2 + socket.py patch
http://fisheye3.atlassian.com/browse/~raw,r=6354/jython/trunk/jython/Lib/socket.py).

The first problem seems to be the included CherryPy wsgiserver  for
which I ask for a change already http://www.cherrypy.org/ticket/921
Problem is the usage of socket.TCP_NODELAY which is not supported by
Jython. It that would be configurable in CherryPy and/or web.py at
least this problem would be gone I think.
I hacked the server and using the following to start a web.py app at
least does that the server:


import web

urls = (
    '/(.*)', 'hello'
)
app = web.application(urls, globals())


class hello:
    def GET(self, name):
        if not name:
            name = 'world'
        return 'Hello, ' + name + '!'

application = app.wsgifunc()

if __name__ == "__main__":
    import wsgiserver
    httpd = wsgiserver.CherryPyWSGIServer(
            ('0.0.0.0', 8001), application,
            server_name='www.cherrypy.example')
    httpd.start()


If web.py would use a wsgiserver which would be like suggested at
http://bugs.jython.org/issue1347 at least the server would run with
Jython.

Templates also do not seem to run but I have to look into that one
further.

Thanks for any help.

Chris



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" 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/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to