summaryrefslogtreecommitdiff
path: root/docs/errata.rst
blob: eb33de8bacba59001f0e9efd33a4b7b964fa049c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
Errata for "The repoze.bfg Web Framework, Version 1.2" Printed Edition
======================================================================

pp. 66
------

The sentence:

  "Technically, traversal is a repoze.bfg subsystem that is separated
  from traversal entirely."

Should read:

  "Technically, view lookup is a repoze.bfg subsystem that is
  separated from traversal entirely."


pp. 103
-------

The sentence:

  "The Context Finding and View Lookup (pp. 57) describes how a
  context and a view name are computed using information from the
  request. "

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')