From 57d6f1b507a8715eae2d017a3b11fabf5850fe9f Mon Sep 17 00:00:00 2001 From: "Paul J. Davis" Date: Fri, 16 Apr 2010 14:01:46 -0400 Subject: [PATCH] Add a cherrpy example. --- examples/cherryapp.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 examples/cherryapp.py diff --git a/examples/cherryapp.py b/examples/cherryapp.py new file mode 100644 index 00000000..ee3218c0 --- /dev/null +++ b/examples/cherryapp.py @@ -0,0 +1,10 @@ +import cherrypy + +cherrypy.config.update({'environment': 'embedded'}) + +class Root(object): + def index(self): + return 'Hello World!' + index.exposed = True + +app = cherrypy.Application(Root(), script_name=None, config=None)