From 374bb7bfff681fe23e0cf4cf6c376507f23a6944 Mon Sep 17 00:00:00 2001 From: benoitc Date: Wed, 23 Mar 2011 07:32:37 +0100 Subject: [PATCH] add pyramid app example --- examples/frameworks/pyramidapp.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 examples/frameworks/pyramidapp.py diff --git a/examples/frameworks/pyramidapp.py b/examples/frameworks/pyramidapp.py new file mode 100644 index 00000000..13baddbf --- /dev/null +++ b/examples/frameworks/pyramidapp.py @@ -0,0 +1,15 @@ + +from pyramid.config import Configurator +from pyramid.response import Response +from paste.httpserver import serve + +def hello_world(request): + return Response('Hello world!') + +def goodbye_world(request): + return Response('Goodbye world!') + +config = Configurator() +config.add_view(hello_world) +config.add_view(goodbye_world, name='goodbye') +app = config.make_wsgi_app()