From 7867826f9abf8c9996b1c53e9fdb6c104b931bf9 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Fri, 9 Oct 2009 07:21:07 +0000 Subject: Fix ordering. --- docs/tutorials/bfgwiki2/authorization.rst | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to 'docs/tutorials') 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`` ~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- cgit v1.2.3