@@ -0,0 +1,575 @@
+import cherrypy%0A%0Aclass User(object):%0A    %0A    @cherrypy.expose%0A    def index(self):%0A        return %22Welcome user!%22%0A    %0A    @cherrypy.expose%0A    def details(self, user):%0A        return %22%25s, you have no details.%22 %25 user%0A%0Aclass Root(object):%0A    user = User()%0A%0A    @cherrypy.expose%0A    def index(self):%0A        return %22Rooting?%22%0A%0Acherrypy.tree.mount(Root())%0Acherrypy.server.unsubscribe()%0A%0Aserver2 = cherrypy._cpserver.Server()%0Aserver2.socket_port=8080%0Aserver2._socket_host='127.0.0.1'%0Aserver2.thread_pool=10%0Aserver2.subscribe()%0A%0Acherrypy.engine.start()%0Acherrypy.engine.block()%0A

add simple-tree cherrypy server