| | |
| | | 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. |
| | |
| | | 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 |
| | |
| | | def __init__(self, system, rendering_val=None): |
| | | dict.__init__(self, system) |
| | | self.rendering_val = rendering_val |
| | | |
| | | |