File: //proc/self/root/opt/alt/python27/lib/python2.7/site-packages/paste/cgiapp.pyc
�
a�Nc @ s� d Z d d l Z d d l Z d d l Z d d l Z y d d l Z Wn e k
r_ d Z n Xd d l m Z d d g Z
d e f d � � YZ d e
f d � � YZ d e
f d � � YZ d
e
f d � � YZ d d d d � Z d d d d
� Z d S( s%
Application that runs a CGI script.
i����N( t
converterst CGIErrort CGIApplicationc B s e Z d Z RS( s`
Raised when the CGI script can't be found or doesn't
act like a proper CGI script.
( t __name__t
__module__t __doc__( ( ( s= /opt/alt/python27/lib/python2.7/site-packages/paste/cgiapp.pyR s c B s) e Z d Z d e d d � Z d � Z RS( s�
This object acts as a proxy to a CGI application. You pass in the
script path (``script``), an optional path to search for the
script (if the name isn't absolute) (``path``). If you don't give
a path, then ``$PATH`` will be used.
c C sA | r t d � � n | | _ | d k rK t j j d d � j d � } n | | _ d | k r� | d k s� t d | | f � � | j d d � \ } } n t j j | � | k r"xs | j D]C } t j j
t j j | | � � r� t j j | | � | _ Pq� q� Wt
d | | j f � � n | | _ | | _ | | _ d S( Nsj global_conf is no longer supported for CGIApplication (use make_cgi_application); please pass None insteadt PATHt t :t ?sN You cannot have '?' in your script name (%r) and also give a query_string (%r)i s Script %r not found in path %r( t NotImplementedt script_filenamet Nonet ost environt gett splitt patht AssertionErrort abspatht existst joint scriptR t include_os_environt query_string( t selft global_confR R R R t path_dir( ( s= /opt/alt/python27/lib/python2.7/site-packages/paste/cgiapp.pyt __init__# s. ! ! c
C s
d | k rG t j | j d d � � t j | j d d � � | d <n | j rb t j j � } n i } xD | D]<