Add a cherrpy example.

This commit is contained in:
Paul J. Davis 2010-04-16 14:01:46 -04:00 committed by benoitc
parent bc64baba65
commit 57d6f1b507

10
examples/cherryapp.py Normal file
View File

@ -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)