From ae901436a61563968cc31cc636f1fbeb5e85b528 Mon Sep 17 00:00:00 2001 From: Paul Everitt Date: Sun, 11 Aug 2013 09:53:00 -0400 Subject: Per discussion with Chris, just wrap up "getting started" as the Quick Tour. Still need to do more linking and perhaps add a section on root factories, authorization, authentication. --- docs/getting_started/quick_glance/json/app.py | 15 --------------- .../quick_glance/json/hello_world.jinja2 | 10 ---------- docs/getting_started/quick_glance/json/hello_world.pt | 17 ----------------- docs/getting_started/quick_glance/json/views.py | 13 ------------- 4 files changed, 55 deletions(-) delete mode 100644 docs/getting_started/quick_glance/json/app.py delete mode 100644 docs/getting_started/quick_glance/json/hello_world.jinja2 delete mode 100644 docs/getting_started/quick_glance/json/hello_world.pt delete mode 100644 docs/getting_started/quick_glance/json/views.py (limited to 'docs/getting_started/quick_glance/json') diff --git a/docs/getting_started/quick_glance/json/app.py b/docs/getting_started/quick_glance/json/app.py deleted file mode 100644 index 950cb478f..000000000 --- a/docs/getting_started/quick_glance/json/app.py +++ /dev/null @@ -1,15 +0,0 @@ -from wsgiref.simple_server import make_server - -from pyramid.config import Configurator - - -if __name__ == '__main__': - config = Configurator() - config.add_route('hello', '/howdy/{name}') - config.add_route('hello_json', 'hello.json') - config.add_static_view(name='static', path='static') - config.include('pyramid_jinja2') - config.scan('views') - app = config.make_wsgi_app() - server = make_server('0.0.0.0', 6543, app) - server.serve_forever() \ No newline at end of file diff --git a/docs/getting_started/quick_glance/json/hello_world.jinja2 b/docs/getting_started/quick_glance/json/hello_world.jinja2 deleted file mode 100644 index f6862e618..000000000 --- a/docs/getting_started/quick_glance/json/hello_world.jinja2 +++ /dev/null @@ -1,10 +0,0 @@ - - - - Quick Glance - - - -

Hello {{ name }}!

- - \ No newline at end of file diff --git a/docs/getting_started/quick_glance/json/hello_world.pt b/docs/getting_started/quick_glance/json/hello_world.pt deleted file mode 100644 index 711054aa9..000000000 --- a/docs/getting_started/quick_glance/json/hello_world.pt +++ /dev/null @@ -1,17 +0,0 @@ - - - - Quick Glance - - - - - - - - -

Hello ${name}!

- - \ No newline at end of file diff --git a/docs/getting_started/quick_glance/json/views.py b/docs/getting_started/quick_glance/json/views.py deleted file mode 100644 index 583e220c7..000000000 --- a/docs/getting_started/quick_glance/json/views.py +++ /dev/null @@ -1,13 +0,0 @@ -from pyramid.view import view_config - - -@view_config(route_name='hello', renderer='hello_world.pt') -def hello_world(request): - return dict(name=request.matchdict['name']) - - -# Start View 1 -@view_config(route_name='hello_json', renderer='json') -def hello_json(request): - return [1, 2, 3] - # End View 1 \ No newline at end of file -- cgit v1.2.3