Hi all,
After applying the attached patch to cherrypy trunk (r1932), CherryPy
will run a simple Hello World program (also attached) using IronPython
2.0b1 and NWSGI. It should work with the 0.1 release of NWSGI. I
haven't tested the standalone CherryPy server yet.

-Jeff
Index: cherrypy/__init__.py
===================================================================
--- cherrypy/__init__.py        (revision 1932)
+++ cherrypy/__init__.py        (working copy)
@@ -319,7 +319,7 @@
     
     def _get_dict(self):
         child = getattr(serving, self.__attrname__)
-        d = child.__class__.__dict__.copy()
+        d = dict(child.__class__.__dict__).copy()
         d.update(child.__dict__)
         return d
     __dict__ = property(_get_dict)
import cherrypy

cherrypy.config.update({'environment': 'embedded'})

class HelloWorld:
    """ Sample request handler class. """

    def index(self):
        # CherryPy will call this method for the root URI ("/") and send
        # its return value to the client. Because this is tutorial
        # lesson number 01, we'll just send something really simple.
        # How about...
        return "Hello world!"

    # Expose the index method through the web. CherryPy will never
    # publish methods that don't have the exposed attribute set to True.
    index.exposed = True

application = cherrypy.Application(HelloWorld(), None)
_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to