summaryrefslogtreecommitdiff
path: root/docs/tutorials
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-10-09 07:21:07 +0000
committerChris McDonough <chrism@agendaless.com>2009-10-09 07:21:07 +0000
commit7867826f9abf8c9996b1c53e9fdb6c104b931bf9 (patch)
tree5e78aaf5e399b8b7e867aaa76636c71e23a98f67 /docs/tutorials
parent7850a4dc46518773eb9891dff5db1282da948c0d (diff)
downloadpyramid-7867826f9abf8c9996b1c53e9fdb6c104b931bf9.tar.gz
pyramid-7867826f9abf8c9996b1c53e9fdb6c104b931bf9.tar.bz2
pyramid-7867826f9abf8c9996b1c53e9fdb6c104b931bf9.zip
Fix ordering.
Diffstat (limited to 'docs/tutorials')
-rw-r--r--docs/tutorials/bfgwiki2/authorization.rst19
1 files changed, 8 insertions, 11 deletions
diff --git a/docs/tutorials/bfgwiki2/authorization.rst b/docs/tutorials/bfgwiki2/authorization.rst
index d4ec03eb2..d48236d0a 100644
--- a/docs/tutorials/bfgwiki2/authorization.rst
+++ b/docs/tutorials/bfgwiki2/authorization.rst
@@ -57,17 +57,6 @@ See :ref:`assigning_acls` for more information about what an
globally. See the ``factory`` attribute in
:ref:`route_zcml_directive` for more info.
-Configuring a ``repoze.bfg`` Authentication Policy
---------------------------------------------------
-
-For any :mod:`repoze.bfg` application to perform authorization, we
-need to add a ``security.py`` module and we'll need to change our
-:term:`application registry` to add an :term:`authentication policy`
-and an :term:`authorization policy`.
-
-Changing ``run.py``
-~~~~~~~~~~~~~~~~~~~
-
We'll pass the ``RootFactory`` we created in the step above in as the
first argument to ``make_app``. When we're done, your application's
``run.py`` will look like this.
@@ -76,6 +65,14 @@ first argument to ``make_app``. When we're done, your application's
:linenos:
:language: python
+Configuring a ``repoze.bfg`` Authentication Policy
+--------------------------------------------------
+
+For any :mod:`repoze.bfg` application to perform authorization, we
+need to add a ``security.py`` module and we'll need to change our
+:term:`application registry` to add an :term:`authentication policy`
+and an :term:`authorization policy`.
+
Changing ``configure.zcml``
~~~~~~~~~~~~~~~~~~~~~~~~~~~