diff options
| author | Chris McDonough <chrism@plope.com> | 2010-10-25 17:38:13 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2010-10-25 17:38:13 -0400 |
| commit | ae8e4ad63449212da28c6a169c36aac54ed38a9e (patch) | |
| tree | 830a4e3082d2eae5eaab9fa437bd83c10c1abd6f /docs/tutorials/bfgwiki/definingmodels.rst | |
| parent | 3bea655f0147c9fc6ec948cbaf8ee7a5767eb045 (diff) | |
| download | pyramid-ae8e4ad63449212da28c6a169c36aac54ed38a9e.tar.gz pyramid-ae8e4ad63449212da28c6a169c36aac54ed38a9e.tar.bz2 pyramid-ae8e4ad63449212da28c6a169c36aac54ed38a9e.zip | |
convert bfgwiki tutorial to pyramid
Diffstat (limited to 'docs/tutorials/bfgwiki/definingmodels.rst')
| -rw-r--r-- | docs/tutorials/bfgwiki/definingmodels.rst | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/docs/tutorials/bfgwiki/definingmodels.rst b/docs/tutorials/bfgwiki/definingmodels.rst index 1edb9c2c2..b63d0c21b 100644 --- a/docs/tutorials/bfgwiki/definingmodels.rst +++ b/docs/tutorials/bfgwiki/definingmodels.rst @@ -11,8 +11,9 @@ objects. A single instance of the "Wiki" class will serve as a container for "Page" objects, which will be instances of the "Page" class. -The source code for this tutorial stage can be browsed at -`docs.repoze.org <http://docs.repoze.org/bfgwiki-1.3/models>`_. +The source code for this tutorial stage can be browsed via +`http://github.com/Pylons/pyramid/tree/master/docs/tutorials/wiki/src/models/ +<http://github.com/Pylons/pyramid/tree/master/docs/tutorials/wiki/src/models/>`_. Deleting the Database --------------------- @@ -56,7 +57,7 @@ Our ``Wiki`` class should also have a ``__name__`` attribute set to ``None`` at class scope, and should have a ``__parent__`` attribute set to ``None`` at class scope as well. If a model has a ``__parent__`` attribute of ``None`` in a traversal-based -:mod:`repoze.bfg` application, it means that it's the :term:`root` +:mod:`pyramid` application, it means that it's the :term:`root` model. The ``__name__`` of the root model is also always ``None``. Then we'll add a ``Page`` class. This class should inherit from the @@ -102,10 +103,10 @@ separate test class for each model class, and we'll write a test class for the ``appmaker``. To do so, we'll retain the ``tutorial.tests.ViewTests`` class provided -as a result of the ``bfg_zodb`` project generator. We'll add three -test classes: one for the ``Page`` model named ``PageModelTests``, one -for the ``Wiki`` model named ``WikiModelTests``, and one for the -appmaker named ``AppmakerTests``. +as a result of the ``pyramid_zodb`` project generator. We'll add +three test classes: one for the ``Page`` model named +``PageModelTests``, one for the ``Wiki`` model named +``WikiModelTests``, and one for the appmaker named ``AppmakerTests``. When we're done changing ``tests.py``, it will look something like so: |
