Browse files

Clarify two steps in the SQL wiki tutorial

- Highlight the added or changed lines
  • Loading branch information...
ppaez authored and Reed O'Brien committed Mar 13, 2012
1 parent 245ff86 commit fa28ae63792ec07fc29e943ee6b79360c05974df
Showing with 12 additions and 3 deletions.
  1. +7 −1 docs/tutorials/wiki2/authorization.rst
  2. +5 −2 docs/tutorials/wiki2/definingviews.rst
@@ -189,7 +189,13 @@ visit ``/login``.
We'll need to import some stuff to service the needs of these two functions:
the ``pyramid.view.forbidden_view_config`` class, a number of values from the
```` module, and a value from our newly added
-```` package.
+```` package. Add the following import statements to the
+head of the ```` file:
+.. literalinclude:: src/authorization/tutorial/
+ :lines: 9-18,24-25
+ :linenos:
+ :language: python
Changing Existing Views
@@ -28,15 +28,18 @@ dependency of the original "tutorial" application. The original "tutorial"
application was generated by the ``pcreate`` command; it doesn't know
about our custom application requirements. We need to add a dependency on
the ``docutils`` package to our ``tutorial`` package's ```` file by
-assigning this dependency to the ``install_requires`` parameter in the
+assigning this dependency to the ``requires`` parameter in the
``setup`` function.
-Our resulting ```` should look like so:
+Open ``tutorial/`` and edit it to look like the following:
.. literalinclude:: src/views/
+ :emphasize-lines: 17
:language: python
+(Only the highlighted line needs to be added)
Running `` develop``

0 comments on commit fa28ae6

Please sign in to comment.