summaryrefslogtreecommitdiff
path: root/docs/tutorials/bfgwiki
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-12-25 06:44:37 +0000
committerChris McDonough <chrism@agendaless.com>2009-12-25 06:44:37 +0000
commit0ac7b075f76b3989fe9eb763b73bab827c9deccd (patch)
tree50c8d7d38837cb468af45ee90e34efec21bf3e73 /docs/tutorials/bfgwiki
parenta0169ff21b5cd7446bf0289bffdb52de8dc61290 (diff)
downloadpyramid-0ac7b075f76b3989fe9eb763b73bab827c9deccd.tar.gz
pyramid-0ac7b075f76b3989fe9eb763b73bab827c9deccd.tar.bz2
pyramid-0ac7b075f76b3989fe9eb763b73bab827c9deccd.zip
Fix syntax errors found via manuel, and add manuel-style markers to prevent
untestable code blocks from being tested.
Diffstat (limited to 'docs/tutorials/bfgwiki')
-rw-r--r--docs/tutorials/bfgwiki/authorization.rst5
-rw-r--r--docs/tutorials/bfgwiki/viewdecorators.rst5
2 files changed, 8 insertions, 2 deletions
diff --git a/docs/tutorials/bfgwiki/authorization.rst b/docs/tutorials/bfgwiki/authorization.rst
index 8d3f08d6a..cb0f8439e 100644
--- a/docs/tutorials/bfgwiki/authorization.rst
+++ b/docs/tutorials/bfgwiki/authorization.rst
@@ -80,15 +80,18 @@ 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:
+.. ignore-next-block
.. code-block:: python
:linenos:
+ from repoze.bfg.security import authenticated_userid
logged_in = authenticated_userid(request)
We'll then change the return value of each view that has an associated
``renderer`` to pass the `resulting `logged_in`` value to the
-template, e.g.:
+template. For example:
+.. ignore-next-block
.. code-block:: python
:linenos:
diff --git a/docs/tutorials/bfgwiki/viewdecorators.rst b/docs/tutorials/bfgwiki/viewdecorators.rst
index a1b2810d8..265adac4f 100644
--- a/docs/tutorials/bfgwiki/viewdecorators.rst
+++ b/docs/tutorials/bfgwiki/viewdecorators.rst
@@ -45,6 +45,7 @@ The ``view_wiki`` view function
The decorator above the ``view_wiki`` function will be:
+.. ignore-next-block
.. code-block:: python
:linenos:
@@ -70,6 +71,7 @@ The ``view_page`` view function
The decorator above the ``view_page`` function will be:
+.. ignore-next-block
.. code-block:: python
:linenos:
@@ -96,6 +98,7 @@ The ``add_page`` view function
The decorator above the ``add_page`` function will be:
+.. ignore-next-block
.. code-block:: python
:linenos:
@@ -122,6 +125,7 @@ The ``edit_page`` view function
The decorator above the ``edit_page`` function will be:
+.. ignore-next-block
.. code-block:: python
:linenos:
@@ -195,7 +199,6 @@ On Windows:
.. code-block:: bat
-
c:\bigfntut\tutorial> ..\Scripts\python setup.py test -q
Hopefully nothing will have changed. The expected result looks