Created
April 23, 2013 20:55
Revisions
-
hanula created this gist
Apr 23, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ def create_pyramid(body, headers): from pyramid.response import Response from pyramid.config import Configurator def hello(request): return Response(body, headers=headers, content_type='text/plain') config = Configurator() config.add_route('hello', '/hello/:account_id/test') config.add_view(hello, route_name='hello') return config.make_wsgi_app()