diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-07-05 22:35:28 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-07-05 22:35:28 +0000 |
| commit | 9299422a9e04ecd07f81bea4fdf6975fb7d68b84 (patch) | |
| tree | 370342bd26e2c720a83109d8f74a1081b259d6b2 /docs | |
| parent | 727d349420b2f303bd8bb09fbd506113c8ac0f5c (diff) | |
| download | pyramid-9299422a9e04ecd07f81bea4fdf6975fb7d68b84.tar.gz pyramid-9299422a9e04ecd07f81bea4fdf6975fb7d68b84.tar.bz2 pyramid-9299422a9e04ecd07f81bea4fdf6975fb7d68b84.zip | |
Spelling.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/tutorials/bfgwiki/authorization.rst | 6 | ||||
| -rw-r--r-- | docs/tutorials/bfgwiki/definingviews.rst | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/docs/tutorials/bfgwiki/authorization.rst b/docs/tutorials/bfgwiki/authorization.rst index 7913240b8..a736b7faa 100644 --- a/docs/tutorials/bfgwiki/authorization.rst +++ b/docs/tutorials/bfgwiki/authorization.rst @@ -15,7 +15,7 @@ Configuring a ``repoze.bfg`` Authentication Policy -------------------------------------------------- For any :mod:`repoze.bfg` application to perform authorization, we -need to add a ``secrity.py`` module and we'll need to change our +need to add a ``security.py`` module and we'll need to change our :term:`application registry` to add an :term:`authentication policy` and a :term:`authorization policy`. @@ -41,7 +41,7 @@ Adding ``security.py`` Add a ``security.py`` module within your package (in the same directory as "run.py", "views.py", etc) with the following content: The groupfinder defined here is an authorization policy "callback"; it -is a be a callable that accepts a userid ana a request. If the userid +is a be a callable that accepts a userid and a request. If the userid exists in the system, the callback will return a sequence of group identifiers (or an empty sequence if the user isn't a member of any groups). If the userid *does not* exist in the system, the callback @@ -74,7 +74,7 @@ and logout views. Add a file named ``login.py`` to your application Changing Existing Views ~~~~~~~~~~~~~~~~~~~~~~~ -Then we need to change each opf our ``view_page``, ``edit_page`` and +Then we need to change each of our ``view_page``, ``edit_page`` and ``add_page`` views in ``views.py`` to pass a "logged in" parameter into its template. We'll add something like this to each view body: diff --git a/docs/tutorials/bfgwiki/definingviews.rst b/docs/tutorials/bfgwiki/definingviews.rst index bf47c37ad..1519bedab 100644 --- a/docs/tutorials/bfgwiki/definingviews.rst +++ b/docs/tutorials/bfgwiki/definingviews.rst @@ -55,7 +55,7 @@ page's ``__parent__``) already contains a page with the matched WikiWord name, the ``check`` function generates a view link to be used as the substitution value and returns it. If the wiki does not already contain a page with with the matched WikiWord name, the -function generates an "add" link as the subsitution value and returns +function generates an "add" link as the substitution value and returns it. As a result, the ``content`` variable is now a fully formed bit of @@ -321,7 +321,7 @@ Adding an Element to the Pipeline Let's add a piece of middleware to the WSGI pipeline. "egg:Paste#evalerror" middleware which displays debuggable errors in -the browser while you're developing (not recommeded for deployment). +the browser while you're developing (not recommended for deployment). Let's insert evalerror into the pipeline right below "egg:repoze.zodbconn#closer", making our resulting ``tutorial.ini`` file look like so: |
