diff options
| author | Patricio Paez <pp@pp.com.mx> | 2011-03-31 06:57:32 -0600 |
|---|---|---|
| committer | Patricio Paez <pp@pp.com.mx> | 2011-03-31 07:32:44 -0600 |
| commit | a4e90c8ffb9e8a746bee126649b5bdc8fe938b43 (patch) | |
| tree | 110ba557d05b06769649f4b8bdc8b2cd5d9513c1 | |
| parent | 279ba5e6d6fde22923d919ab6d5ce5b535d2355c (diff) | |
| download | pyramid-a4e90c8ffb9e8a746bee126649b5bdc8fe938b43.tar.gz pyramid-a4e90c8ffb9e8a746bee126649b5bdc8fe938b43.tar.bz2 pyramid-a4e90c8ffb9e8a746bee126649b5bdc8fe938b43.zip | |
Sync note with SQLAlchemy tutorial
| -rw-r--r-- | docs/tutorials/wiki/definingviews.rst | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/docs/tutorials/wiki/definingviews.rst b/docs/tutorials/wiki/definingviews.rst index b63278cb6..434ce6851 100644 --- a/docs/tutorials/wiki/definingviews.rst +++ b/docs/tutorials/wiki/definingviews.rst @@ -2,16 +2,6 @@ Defining Views ============== -Conventionally, :term:`view callable` objects are defined within a -``views.py`` module in an :app:`Pyramid` application. There is nothing -automagically special about the filename ``views.py``. Files implementing -views often have ``view`` in their filenames (or may live in a Python -subpackage of your application package named ``views``), but this is only by -convention. A project may have many views throughout its codebase in -arbitrarily-named files. In this application, however, we'll be continuing -to use the ``views.py`` module, because there's no reason to break -convention. - A :term:`view callable` in a :app:`Pyramid` application is typically a simple Python function that accepts a single parameter: :term:`request`. A view callable is assumed to return a :term:`response` object. @@ -73,6 +63,14 @@ answer on the root URL), another named ``view_page`` will display an individual page, another named ``add_page`` will allow a page to be added, and a final view named ``edit_page`` will allow a page to be edited. +.. note:: + + There is nothing special about the filename ``views.py``. A project may + have many view callables throughout its codebase in arbitrarily-named + files. Files implementing view callables often have ``view`` in their + filenames (or may live in a Python subpackage of your application package + named ``views``), but this is only by convention. + The ``view_wiki`` view function ------------------------------- |
