summaryrefslogtreecommitdiff
path: root/docs/narr
diff options
context:
space:
mode:
authorFernando Correa Neto <fcdoth@gmail.com>2008-12-09 23:16:56 +0000
committerFernando Correa Neto <fcdoth@gmail.com>2008-12-09 23:16:56 +0000
commit67b8a1ceda0d73739b18045c8b405a1d22b4480a (patch)
treeba340a43cfd0f030833b8714137f7439bbb45feb /docs/narr
parentd1925330a4b9c9fae0ac28025b5c1023a0a5c0a6 (diff)
downloadpyramid-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.rst7
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