Skip to content

Commit

Permalink
Merge pull request #474 from ppaez/wiki-documentation
Browse files Browse the repository at this point in the history
Clarify two steps in the SQL wiki tutorial
  • Loading branch information
michr committed Mar 13, 2012
2 parents b262016 + 533c89e commit 3ea3ec0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
8 changes: 7 additions & 1 deletion docs/tutorials/wiki2/authorization.rst
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -189,7 +189,13 @@ visit ``/login``.
We'll need to import some stuff to service the needs of these two functions: 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 the ``pyramid.view.forbidden_view_config`` class, a number of values from the
``pyramid.security`` module, and a value from our newly added ``pyramid.security`` module, and a value from our newly added
``tutorial.security`` package. ``tutorial.security`` package. Add the following import statements to the
head of the ``views.py`` file:

.. literalinclude:: src/authorization/tutorial/views.py
:lines: 9-18,24-25
:linenos:
:language: python


Changing Existing Views Changing Existing Views
----------------------- -----------------------
Expand Down
7 changes: 5 additions & 2 deletions docs/tutorials/wiki2/definingviews.rst
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -28,15 +28,18 @@ dependency of the original "tutorial" application. The original "tutorial"
application was generated by the ``pcreate`` command; it doesn't know application was generated by the ``pcreate`` command; it doesn't know
about our custom application requirements. We need to add a dependency on about our custom application requirements. We need to add a dependency on
the ``docutils`` package to our ``tutorial`` package's ``setup.py`` file by the ``docutils`` package to our ``tutorial`` package's ``setup.py`` file by
assigning this dependency to the ``install_requires`` parameter in the assigning this dependency to the ``requires`` parameter in the
``setup`` function. ``setup`` function.


Our resulting ``setup.py`` should look like so: Open ``tutorial/setup.py`` and edit it to look like the following:


.. literalinclude:: src/views/setup.py .. literalinclude:: src/views/setup.py
:linenos: :linenos:
:emphasize-lines: 17
:language: python :language: python


(Only the highlighted line needs to be added)

Running ``setup.py develop`` Running ``setup.py develop``
============================ ============================


Expand Down

0 comments on commit 3ea3ec0

Please sign in to comment.