diff options
| author | goodwillcoding <goodwillcoding@webhippo.net> | 2013-01-22 09:57:51 -0800 |
|---|---|---|
| committer | goodwillcoding <goodwillcoding@webhippo.net> | 2013-01-22 09:57:51 -0800 |
| commit | f9bb5acdef3322e549512ad721b2c351c0064e71 (patch) | |
| tree | 8da2fd079e9f601aa33c8b9ba79e73095cf3f7ac /docs/tutorials/wiki/definingmodels.rst | |
| parent | 10f6c5a129cab1cb9f067ed7e0287585af2fc329 (diff) | |
| parent | f1134866e8ca96e1309dca930bd5345233748659 (diff) | |
| download | pyramid-f9bb5acdef3322e549512ad721b2c351c0064e71.tar.gz pyramid-f9bb5acdef3322e549512ad721b2c351c0064e71.tar.bz2 pyramid-f9bb5acdef3322e549512ad721b2c351c0064e71.zip | |
Merge pull request #812 from stevepiercy/master
etc. is an abbreviation
thank you
Diffstat (limited to 'docs/tutorials/wiki/definingmodels.rst')
| -rw-r--r-- | docs/tutorials/wiki/definingmodels.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/tutorials/wiki/definingmodels.rst b/docs/tutorials/wiki/definingmodels.rst index 1d2710975..49372179f 100644 --- a/docs/tutorials/wiki/definingmodels.rst +++ b/docs/tutorials/wiki/definingmodels.rst @@ -33,7 +33,7 @@ Edit ``models.py`` .. note:: There is nothing automagically special about the filename ``models.py``. A - project may have many models throughout its codebase in arbitrarily-named + project may have many models throughout its codebase in arbitrarily named files. Files implementing models often have ``model`` in their filenames, or they may live in a Python subpackage of your application package named ``models``, but this is only by convention. @@ -56,7 +56,7 @@ of the root model is also always ``None``. Then we'll add a ``Page`` class. This class should inherit from the :class:`persistent.Persistent` class. We'll also give it an ``__init__`` method that accepts a single parameter named ``data``. This parameter will -contain the :term:`ReStructuredText` body representing the wiki page content. +contain the :term:`reStructuredText` body representing the wiki page content. Note that ``Page`` objects don't have an initial ``__name__`` or ``__parent__`` attribute. All objects in a traversal graph must have a ``__name__`` and a ``__parent__`` attribute. We don't specify these here |
