diff options
| author | Chris McDonough <chrism@plope.com> | 2010-12-27 01:01:33 -0500 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2010-12-27 01:01:33 -0500 |
| commit | cfb6c56c2f4ba9fc477de0c461f2b757f6f9d9c1 (patch) | |
| tree | 56e98c7243e808ae2e496d1f4ee2993841b4d98c /docs | |
| parent | 5f0398b63c9f01a4a6ad0664e117b508f9e89ade (diff) | |
| download | pyramid-cfb6c56c2f4ba9fc477de0c461f2b757f6f9d9c1.tar.gz pyramid-cfb6c56c2f4ba9fc477de0c461f2b757f6f9d9c1.tar.bz2 pyramid-cfb6c56c2f4ba9fc477de0c461f2b757f6f9d9c1.zip | |
remove unnecessary use of begin/end
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/narr/declarative.rst | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/docs/narr/declarative.rst b/docs/narr/declarative.rst index 6654c3dcd..f36e55b29 100644 --- a/docs/narr/declarative.rst +++ b/docs/narr/declarative.rst @@ -47,9 +47,7 @@ In a file named ``helloworld.py``: if __name__ == '__main__': config = Configurator() - config.begin() config.load_zcml('configure.zcml') - config.end() app = config.make_wsgi_app() serve(app, host='0.0.0.0') @@ -82,9 +80,7 @@ the ``if __name__ == '__main__'`` section of ``helloworld.py``: if __name__ == '__main__': config = Configurator() - config.begin() config.add_view(hello_world) - config.end() app = config.make_wsgi_app() serve(app, host='0.0.0.0') @@ -98,9 +94,7 @@ it now reads as: if __name__ == '__main__': config = Configurator() - config.begin() config.load_zcml('configure.zcml') - config.end() app = config.make_wsgi_app() serve(app, host='0.0.0.0') @@ -225,9 +219,7 @@ To do so, first, create a file named ``helloworld.py``: if __name__ == '__main__': config = Configurator() - config.begin() config.load_zcml('configure.zcml') - config.end() app = config.make_wsgi_app() serve(app, host='0.0.0.0') @@ -270,10 +262,8 @@ within the ``if __name__ == '__main__'`` section of ``helloworld.py``: if __name__ == '__main__': config = Configurator() - config.begin() config.add_view(hello_world) config.add_view(goodbye_world, name='goodbye') - config.end() app = config.make_wsgi_app() serve(app, host='0.0.0.0') @@ -288,9 +278,7 @@ name='goodbye')``, so that it now reads as: if __name__ == '__main__': config = Configurator() - config.begin() config.load_zcml('configure.zcml') - config.end() app = config.make_wsgi_app() serve(app, host='0.0.0.0') @@ -545,9 +533,7 @@ file points to is scanned. if __name__ == '__main__': from pyramid.config import Configurator config = Configurator() - config.begin() config.load_zcml('configure.zcml') - config.end() app = config.make_wsgi_app() serve(app, host='0.0.0.0') |
