Bert JW Regeer
2016-04-11 3f34aa05a48e5d9ae7b43f717b5ad9061effb08c
Update documentation in event.py for BeforeTraversal
1 files modified
15 ■■■■ changed files
pyramid/events.py 15 ●●●● patch | view | raw | blame | history
pyramid/events.py
@@ -134,12 +134,14 @@
class BeforeTraversal(object):
    """
    An instance of this class is emitted as an :term:`event` after the
    :app:`Pyramid` :term:`router` finds a :term:`route` object but before any
    traversal or view code is executed. The instance has an attribute,
    ``request``, which is the request object generated by :app:`Pyramid`.
    :app:`Pyramid` :term:`router` has attempted to find a :term:`route` object
    but before any traversal or view code is executed. The instance has an
    attribute, ``request``, which is the request object generated by
    :app:`Pyramid`.
    Notably, the request object will have an attributed named
    ``matched_route``, which is the matched route that was found.
    Notably, the request object **may** have an attribute named
    ``matched_route``, which is the matched route if found. If no route
    matched, this attribute is not available.
    This class implements the :class:`pyramid.interfaces.IBeforeTraversal`
    interface.
@@ -175,7 +177,7 @@
AfterTraversal = ContextFound # b/c as of 1.0
@implementer(IApplicationCreated)
class ApplicationCreated(object):
class ApplicationCreated(object):
    """ An instance of this class is emitted as an :term:`event` when
    the :meth:`pyramid.config.Configurator.make_wsgi_app` is
    called.  The instance has an attribute, ``app``, which is an
@@ -261,5 +263,4 @@
    def __init__(self, system, rendering_val=None):
        dict.__init__(self, system)
        self.rendering_val = rendering_val