Ñò
@¨ Ic @ s¦ d Z d d k Z d d k Z d d k Z d d k Z d d k l Z d d k l Z l Z d d k
Z
d d k Z
d g Z e i
e ƒ Z d e f d „ ƒ YZ d S( s The core WSGIControlleriÿÿÿÿN( t
HTTPException( R t HTTPNotFoundt WSGIControllerc B sA e Z d Z e Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( sG WSGI Controller that follows WSGI spec for calling and return
values
The Pylons WSGI Controller handles incoming web requests that are
dispatched from the PylonsBaseWSGIApp. These requests result in a
new instance of the WSGIController being created, which is then
called with the dict options from the Routes match. The standard
WSGI response is then returned with start_response called as per
the WSGI spec.
Special WSGIController methods you may define:
``__before__``
This method is called before your action is, and should be used
for setting up variables/objects, restricting access to other
actions, or other tasks which should be executed before the
action is called.
``__after__``
This method is called after the action is, unless an unexpected
exception was raised. Subclasses of
:class:`~webob.exc.HTTPException` (such as those raised by
``redirect_to`` and ``abort``) are expected; e.g. ``__after__``
will be called on redirects.
Each action to be called is inspected with :meth:`_inspect_call` so
that it is only passed the arguments in the Routes match dict that
it asks for. The arguments passed into the action can be customized
by overriding the :meth:`_get_method_args` function which is
expected to return a dict.
In the event that an action is not found to handle the request, the
Controller will raise an "Action Not Found" error if in debug mode,
otherwise a ``404 Not Found`` error will be returned.
c C s d } | | S( s3 Hide the traceback for everything above this methodt before_and_this( ( t selft funct argst __traceback_hide__( ( s; /usr/lib/python2.6/site-packages/pylons/controllers/core.pyt
_perform_call9 s c C sÉ y | i i } Wn# t j
o h | i _ } n Xy | | i } Wn- t j
o! t i | ƒ } | | i