Repository URL to install this package:
|
Version:
3.4.52 ▾
|
ó
¦EYc @ s d Z d d l Z d d l Z d d l m Z d d l m Z d d l m Z e j d Z
d e f d YZ d Z
d S(
s Routes WSGI MiddlewareiÿÿÿÿN( t Request( t request_config( t URLGenerators routes.middlewaret RoutesMiddlewarec B s) e Z d Z e e e d Z d Z RS( s Routing middleware that handles resolving the PATH_INFO in
addition to optionally recognizing method overriding.
.. Note::
This module requires webob to be installed. To depend on it, you may
list routes[middleware] in your ``requirements.txt``
c C sh | | _ | | _ | | _ | | _ | | _ t j t j k | _ | j rd t j
d | | n d S( sG Create a Route middleware object
Using the use_method_override keyword will require Paste to be
installed, and your application should use Paste's WSGIRequest
object as it will properly handle POST issues with wsgi.input
should Routes check it.
If path_info is True, then should a route var contain
path_info, the SCRIPT_NAME and PATH_INFO will be altered
accordingly. This should be used with routes like:
.. code-block:: python
map.connect('blog/*path_info', controller='blog', path_info='')
sD Initialized with method overriding = %s, and path info altering = %sN( t appt mappert singletont use_method_overridet path_infot loggingt DEBUGt logt getEffectiveLevelt log_debugt debug( t selft wsgi_appR R R R ( ( sF /home/tvault/.virtenv/lib/python2.7/site-packages/routes/middleware.pyt __init__ s c C sã d } | j rMd } y | d } Wn t k
r<