diff options
| author | Fernando Correa Neto <fcdoth@gmail.com> | 2008-12-09 23:16:56 +0000 |
|---|---|---|
| committer | Fernando Correa Neto <fcdoth@gmail.com> | 2008-12-09 23:16:56 +0000 |
| commit | 67b8a1ceda0d73739b18045c8b405a1d22b4480a (patch) | |
| tree | ba340a43cfd0f030833b8714137f7439bbb45feb /docs/narr | |
| parent | d1925330a4b9c9fae0ac28025b5c1023a0a5c0a6 (diff) | |
| download | pyramid-67b8a1ceda0d73739b18045c8b405a1d22b4480a.tar.gz pyramid-67b8a1ceda0d73739b18045c8b405a1d22b4480a.tar.bz2 pyramid-67b8a1ceda0d73739b18045c8b405a1d22b4480a.zip | |
Add context.root to router so the root model can be easily accessed from a view
Diffstat (limited to 'docs/narr')
| -rw-r--r-- | docs/narr/traversal.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/narr/traversal.rst b/docs/narr/traversal.rst index f85c012e6..ead48aac4 100644 --- a/docs/narr/traversal.rst +++ b/docs/narr/traversal.rst @@ -272,3 +272,10 @@ The :term:`view name` will always be available to a view as the single string (possibly the empty string if we're rendering a default view). +The :term:`root` will always be available to a view as the +``root`` attribute of the :term:`request` object. It will be the +root model instance of the current application. + +The :term:`context` will always be available to a view as the +``context`` attribute of the :term:`request` object. It will be the +model instance of the current application.
\ No newline at end of file |
