diff options
| author | Steve Piercy <web@stevepiercy.com> | 2018-08-18 12:08:29 -0700 |
|---|---|---|
| committer | Steve Piercy <web@stevepiercy.com> | 2018-08-18 12:08:29 -0700 |
| commit | 12abe106f13b92e82e4273348f2ab4db97ad48a2 (patch) | |
| tree | 5b00b49ba5f7557b4d60c4619c519315fc1ca395 /docs/quick_tutorial | |
| parent | cd648a12626e4c44405db04d673f522b8e3cc004 (diff) | |
| download | pyramid-12abe106f13b92e82e4273348f2ab4db97ad48a2.tar.gz pyramid-12abe106f13b92e82e4273348f2ab4db97ad48a2.tar.bz2 pyramid-12abe106f13b92e82e4273348f2ab4db97ad48a2.zip | |
Clean up code-blocks in qt/authorization
Diffstat (limited to 'docs/quick_tutorial')
| -rw-r--r-- | docs/quick_tutorial/authorization.rst | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/quick_tutorial/authorization.rst b/docs/quick_tutorial/authorization.rst index 58c1d2582..e80f88c51 100644 --- a/docs/quick_tutorial/authorization.rst +++ b/docs/quick_tutorial/authorization.rst @@ -41,31 +41,31 @@ Steps .. code-block:: bash - $ cd ..; cp -r authentication authorization; cd authorization - $ $VENV/bin/pip install -e . + cd ..; cp -r authentication authorization; cd authorization + $VENV/bin/pip install -e . #. Start by changing ``authorization/tutorial/__init__.py`` to specify a root factory to the :term:`configurator`: .. literalinclude:: authorization/tutorial/__init__.py - :linenos: + :linenos: #. That means we need to implement ``authorization/tutorial/resources.py``: .. literalinclude:: authorization/tutorial/resources.py - :linenos: + :linenos: #. Change ``authorization/tutorial/views.py`` to require the ``edit`` permission on the ``hello`` view and implement the forbidden view: .. literalinclude:: authorization/tutorial/views.py - :linenos: + :linenos: #. Run your Pyramid application with: .. code-block:: bash - $ $VENV/bin/pserve development.ini --reload + $VENV/bin/pserve development.ini --reload #. Open http://localhost:6543/ in a browser. |
