diff options
| author | Chris McDonough <chrism@plope.com> | 2010-11-04 02:31:35 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2010-11-04 02:31:35 -0400 |
| commit | fb029fb6919c1e64bb12d6906bcaae8de6edfffe (patch) | |
| tree | 5fc94f6e21cb7cb49a2b50c24907e0049c23a0b7 /docs/tutorials/catalog | |
| parent | fbfe84d7c4bea225d67424012b062d9e1735de86 (diff) | |
| download | pyramid-fb029fb6919c1e64bb12d6906bcaae8de6edfffe.tar.gz pyramid-fb029fb6919c1e64bb12d6906bcaae8de6edfffe.tar.bz2 pyramid-fb029fb6919c1e64bb12d6906bcaae8de6edfffe.zip | |
update tutorials to account for paster template changes
Diffstat (limited to 'docs/tutorials/catalog')
| -rw-r--r-- | docs/tutorials/catalog/index.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/tutorials/catalog/index.rst b/docs/tutorials/catalog/index.rst index e4f6fe70e..410016476 100644 --- a/docs/tutorials/catalog/index.rst +++ b/docs/tutorials/catalog/index.rst @@ -84,10 +84,10 @@ want the application to be based on :term:`traversal`. .. code-block:: text [chrism@snowpro sess]$ ../bin/paster --plugin=pyramid pshell \ - myapp.ini myapp + development.ini myapp Python 2.5.4 (r254:67916, Sep 4 2009, 02:12:16) [GCC 4.2.1 (Apple Inc. build 5646)] on darwin - Type "help" for more information. "root" is the BFG app root object. + Type "help" for more information. "root" is the Pyramid app root object. >>> from pyramid.traversal import model_path >>> from myapp.models import Document >>> root['name'] = Document('title') @@ -106,7 +106,7 @@ object. Whenever an index is added or removed, invoke the or from within a ``pshell`` session to update the set of indexes used by your application. -In :term:`view` code, you should be able to get a hold of the root +In :term:`view` code, you should be able to get a hold of he root object via the :func:`pyramid.traversal.find_root` API. The ``catalog`` attribute of that root object will represent the catalog previously added. |
