summaryrefslogtreecommitdiff
path: root/docs/narr/threadlocals.rst
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2010-12-18 02:27:14 -0500
committerChris McDonough <chrism@plope.com>2010-12-18 02:27:14 -0500
commitfb6a5ce52a275f7798e82a34b5907ea118cbd2ff (patch)
tree29e80d0eb681676d1e0eb2707ca764dbf5491864 /docs/narr/threadlocals.rst
parentbf89764a7e3ccab6133c9ad43b8d9af4f5c4083b (diff)
downloadpyramid-fb6a5ce52a275f7798e82a34b5907ea118cbd2ff.tar.gz
pyramid-fb6a5ce52a275f7798e82a34b5907ea118cbd2ff.tar.bz2
pyramid-fb6a5ce52a275f7798e82a34b5907ea118cbd2ff.zip
model -> resource; resource -> asset
Diffstat (limited to 'docs/narr/threadlocals.rst')
-rw-r--r--docs/narr/threadlocals.rst8
1 files changed, 3 insertions, 5 deletions
diff --git a/docs/narr/threadlocals.rst b/docs/narr/threadlocals.rst
index f540fa255..171eaa1c7 100644
--- a/docs/narr/threadlocals.rst
+++ b/docs/narr/threadlocals.rst
@@ -110,11 +110,9 @@ follows:
View callables already have access to the request (it's passed in to
each as ``request``).
-- ``get_current_request`` should never be called in :term:`model`
- code. Model code should never require any access to the request; if
- your model code requires access to a request object, you've almost
- certainly factored something wrong, and you should change your code
- rather than using this function.
+- ``get_current_request`` should never be called in :term:`resource` code.
+ If a resource needs access to the request, it should be passed the request
+ by a :term:`view callable`.
- ``get_current_request`` function should never be called because it's
"easier" or "more elegant" to think about calling it than to pass a