summaryrefslogtreecommitdiff
path: root/docs/errata.rst
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2010-01-21 05:35:15 +0000
committerChris McDonough <chrism@agendaless.com>2010-01-21 05:35:15 +0000
commitdc46fa34275a4fc0de75472813f74c35a7f1b5dc (patch)
tree31003f122b9162802ef63ce457bb454b2c17839a /docs/errata.rst
parent8301bc99420ae3dd05ae4d33fdde8c83a16598f1 (diff)
downloadpyramid-dc46fa34275a4fc0de75472813f74c35a7f1b5dc.tar.gz
pyramid-dc46fa34275a4fc0de75472813f74c35a7f1b5dc.tar.bz2
pyramid-dc46fa34275a4fc0de75472813f74c35a7f1b5dc.zip
Diffstat (limited to 'docs/errata.rst')
-rw-r--r--docs/errata.rst35
1 files changed, 35 insertions, 0 deletions
diff --git a/docs/errata.rst b/docs/errata.rst
index a77c393c1..eb33de8ba 100644
--- a/docs/errata.rst
+++ b/docs/errata.rst
@@ -29,3 +29,38 @@ Should read:
"The chapter named Context Finding and View Lookup (pp. 57)
describes how, using information from the request, a context and a
view name are computed ."
+
+pp. 106
+-------
+
+The enumeration:
+
+ 2. Classes that have an ``__init__`` method that accepts ``context,
+ request``, e.g.:
+
+ .. code-block:: python
+ :linenos:
+
+ from webob import Response
+
+ class view(object):
+ def __init__(self, context, request):
+ return Response('OK')
+
+Should read:
+
+ 2. Classes that have an ``__init__`` method that accepts ``context,
+ request``, and a ``__call__`` which accepts no arguments, e.g.:
+
+ .. code-block:: python
+ :linenos:
+
+ from webob import Response
+
+ class view(object):
+ def __init__(self, context, request):
+ self.context = context
+ self.request = request
+
+ def __call__(self):
+ return Response('OK')