summaryrefslogtreecommitdiff
path: root/docs/narr/extending.rst
diff options
context:
space:
mode:
authorChristoph Zwerschke <cito@online.de>2011-06-05 15:27:17 +0200
committerChristoph Zwerschke <cito@online.de>2011-06-05 15:27:17 +0200
commit879bb56558527e402bc8b0135ce2b40d24fe4a12 (patch)
treec3aaa0bb9a27232e2bc70691500298262a57dfbf /docs/narr/extending.rst
parentaee35e30083acd3d3c84e7f50db1f17bf6dc2d12 (diff)
downloadpyramid-879bb56558527e402bc8b0135ce2b40d24fe4a12.tar.gz
pyramid-879bb56558527e402bc8b0135ce2b40d24fe4a12.tar.bz2
pyramid-879bb56558527e402bc8b0135ce2b40d24fe4a12.zip
More small fixes made reading the rest of the docs and the tutorials.
Diffstat (limited to 'docs/narr/extending.rst')
-rw-r--r--docs/narr/extending.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/narr/extending.rst b/docs/narr/extending.rst
index 9c96fd605..f62c7e6bb 100644
--- a/docs/narr/extending.rst
+++ b/docs/narr/extending.rst
@@ -120,7 +120,7 @@ are declarations made using the :meth:`pyramid.config.Configurator.add_view`
method. Assets are files that are
accessed by :app:`Pyramid` using the :term:`pkg_resources` API such as static
files and templates via a :term:`asset specification`. Other directives and
-configurator methods also deal in routes, views, and assets. For example,
+configurator methods also deal in routes, views, and assets. For example, the
``add_handler`` directive of the ``pyramid_handlers`` package adds a single
route, and some number of views.
@@ -163,7 +163,7 @@ views or routes which performs overrides.
if __name__ == '__main__':
config.scan('someotherpackage')
config.commit()
- config.add_view('mypackage.views.myview', name='myview'
+ config.add_view('mypackage.views.myview', name='myview')
Once this is done, you should be able to extend or override the application
like any other (see :ref:`extending_the_application`).
@@ -201,7 +201,7 @@ like this:
application (e.g. ``python setup.py develop`` or ``python setup.py
install``).
-- Change the ``main`` function in the new package's ``__init__py`` to include
+- Change the ``main`` function in the new package's ``__init__.py`` to include
the original :app:`Pyramid` application's configuration functions via
:meth:`pyramid.config.Configurator.include` statements or a :term:`scan`.