
`Tc           @   s  d  Z  d d l m Z d d l m Z m Z d d l m Z m Z m Z m	 Z	 m
 Z
 m Z m Z m Z m Z m Z m Z m Z m Z m Z m Z m Z m Z m Z m Z m Z m Z m Z d d l m Z m Z m Z d d l  m! Z! m" Z" d d l# m$ Z$ m% Z% m& Z& m' Z' d d l( m) Z) m* Z* m+ Z+ m, Z, m- Z- d d	 l. m/ Z/ m0 Z0 m1 Z1 m2 Z2 m3 Z3 m4 Z4 m5 Z5 m6 Z6 m7 Z7 m8 Z8 m9 Z9 m: Z: m; Z; m< Z< m= Z= d d
 l> m? Z? d d l@ mA ZA mB ZB mC ZC mD ZD mE ZE mF ZF mG ZG mH ZH mI ZI d   aJ d   ZK d   ZL d   ZM d eN f d     YZO d eN f d     YZP d eN f d     YZQ d eN f d     YZR d eN f d     YZS d eN f d     YZT d eN f d     YZU d eN f d     YZV d  eN f d!     YZW d" eN f d#     YZX d$ eN f d%     YZY d& eN f d'     YZZ d( eN f d)     YZ[ d* eO eQ eR eS eT eY f d+     YZ\ d, eU e\ f d-     YZ] d. eP eV eX eZ e[ f d/     YZ^ d0 S(1   si  
    werkzeug.wrappers
    ~~~~~~~~~~~~~~~~~

    The wrappers are simple request and response objects which you can
    subclass to do whatever you want them to do.  The request object contains
    the information transmitted by the client (webbrowser) and the response
    object contains all the information sent back to the browser.

    An important detail is that the request object is created with the WSGI
    environ and will act as high-level proxy whereas the response object is an
    actual WSGI application.

    Like everything else in Werkzeug these objects will work correctly with
    unicode data.  Incoming form data parsed by the response object will be
    decoded into an unicode object if possible and if it makes sense.


    :copyright: (c) 2014 by the Werkzeug Team, see AUTHORS for more details.
    :license: BSD, see LICENSE for more details.
i(   t   update_wrapper(   t   datetimet	   timedelta(   t   HTTP_STATUS_CODESt   parse_accept_headert   parse_cache_control_headert   parse_etagst
   parse_datet   generate_etagt   is_resource_modifiedt   unquote_etagt
   quote_etagt   parse_set_headert   parse_authorization_headert   parse_www_authenticate_headert   remove_entity_headerst   parse_options_headert   dump_options_headert	   http_datet   parse_if_range_headert   parse_cookiet   dump_cookiet   parse_range_headert   parse_content_range_headert   dump_header(   t
   url_decodet
   iri_to_urit   url_join(   t   FormDataParsert   default_stream_factory(   t   cached_propertyt   environ_propertyt   header_propertyt   get_content_type(   t   get_current_urlt   get_hostt   ClosingIteratort   get_input_streamt   get_content_length(   t	   MultiDictt   CombinedMultiDictt   Headerst   EnvironHeaderst   ImmutableMultiDictt   ImmutableTypeConversionDictt   ImmutableListt
   MIMEAcceptt   CharsetAcceptt   LanguageAcceptt   ResponseCacheControlt   RequestCacheControlt   CallbackDictt   ContentRanget   iter_multi_items(   t   _get_environ(	   t   to_bytest   string_typest	   text_typet   integer_typest   wsgi_decoding_dancet   wsgi_get_bytest
   to_unicodet	   to_nativet   BytesIOc          G   s   d d l  m a t |    S(   ss   This function replaces itself to ensure that the test module is not
    imported unless required.  DO NOT USE!
    i(   t   run_wsgi_app(   t   werkzeug.testR@   t   _run_wsgi_app(   t   args(    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyRB   3   s    c         C   s<   t  |  t  r8 d d l m } | t d  d d n  d S(   sn   Helper for the response objects to check if the iterable returned
    to the WSGI server is not a string.
    i(   t   warns   response iterable was set to a string.  This appears to work but means that the server will send the data to the client char, by char.  This is almost never intended behavior, use response.data to assign strings to the response object.t
   stackleveli   N(   t
   isinstanceR8   t   warningsRD   t   Warning(   t   iterableRD   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   _warn_if_string<   s    c         C   s   |  j  r t d   n  d  S(   Nse   A shallow request tried to consume form data.  If you really want to do that, set `shallow` to False.(   t   shallowt   RuntimeError(   t   request(    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   _assert_not_shallowI   s    	c         c   s:   x3 |  D]+ } t  | t  r- | j |  Vq | Vq Wd  S(   N(   RF   R9   t   encode(   RI   t   charsett   item(    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   _iter_encodedP   s    t   BaseRequestc        	   B   s  e  Z d  Z d Z d Z d< Z d< Z e Z	 e
 Z e Z e Z d< Z e Z e e d  Z d   Z e d    Z e d    Z e d    Z d< d< d  Z e d	    Z d
   Z d   Z d   Z d   Z  d   Z! d   Z" e# d    Z$ e% d d  Z& e# d    Z' e# d    Z( e e e d  Z) e# d    Z* e# d    Z+ e# d    Z, e# d    Z- e# d    Z. e# d    Z/ e# d    Z0 e# d    Z1 e# d    Z2 e# d    Z3 e# d     Z4 e# d!    Z5 e# d"    Z6 e% d# d$ d% e d& e7 d' d( Z8 e% d) d* d% e d' d+ Z9 e# d,    Z: e d-    Z; e% d. d' d/ Z< e% d0 d' d1 Z= e d2   d' d3 Z> e d4   d' d5 Z? e% d6 d' d7 Z@ e% d8 d' d9 ZA e% d: d' d; ZB RS(=   s  Very basic request object.  This does not implement advanced stuff like
    entity tag parsing or cache controls.  The request object is created with
    the WSGI environment as first argument and will add itself to the WSGI
    environment as ``'werkzeug.request'`` unless it's created with
    `populate_request` set to False.

    There are a couple of mixins available that add additional functionality
    to the request object, there is also a class called `Request` which
    subclasses `BaseRequest` and all the important mixins.

    It's a good idea to create a custom subclass of the :class:`BaseRequest`
    and add missing functionality either via mixins or direct implementation.
    Here an example for such subclasses::

        from werkzeug.wrappers import BaseRequest, ETagRequestMixin

        class Request(BaseRequest, ETagRequestMixin):
            pass

    Request objects are **read only**.  As of 0.5 modifications are not
    allowed in any place.  Unlike the lower level parsing functions the
    request object will use immutable objects everywhere possible.

    Per default the request object will assume all the text data is `utf-8`
    encoded.  Please refer to `the unicode chapter <unicode.txt>`_ for more
    details about customizing the behavior.

    Per default the request object will be added to the WSGI
    environment as `werkzeug.request` to support the debugging system.
    If you don't want that, set `populate_request` to `False`.

    If `shallow` is `True` the environment is initialized as shallow
    object around the environ.  Every operation that would modify the
    environ in any way (such as consuming form data) raises an exception
    unless the `shallow` attribute is explicitly set to `False`.  This
    is useful for middlewares where you don't want to consume the form
    data by accident.  A shallow request is not populated to the WSGI
    environment.

    .. versionchanged:: 0.5
       read-only mode was enforced by using immutables classes for all
       data.
    s   utf-8t   replacec         C   s3   | |  _  | r& | r& |  |  j  d <n  | |  _ d  S(   Ns   werkzeug.request(   t   environRK   (   t   selfRU   t   populate_requestRK   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   __init__   s    	c         C   sp   g  } y, | j  d |  j  | j  d |  j  Wn t k
 rR | j  d  n Xd |  j j d j |  f S(   Ns   '%s's   [%s]s   (invalid WSGI environ)s   <%s %s>t    (   t   appendt   urlt   methodt	   Exceptiont	   __class__t   __name__t   join(   RV   RC   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   __repr__   s    	c         C   s   |  j  S(   s   The charset that is assumed for URLs.  Defaults to the value
        of :attr:`charset`.

        .. versionadded:: 0.6
        (   RP   (   RV   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   url_charset   s    c         O   sa   d d l  m } | j d |  j  } | | d <| | |   } z | j |   SWd | j   Xd S(   s  Create a new request object based on the values provided.  If
        environ is given missing values are filled from there.  This method is
        useful for small scripts when you need to simulate a request from an URL.
        Do not use this method for unittesting, there is a full featured client
        object (:class:`Client`) that allows to create multipart requests,
        support for cookies etc.

        This accepts the same options as the
        :class:`~werkzeug.test.EnvironBuilder`.

        .. versionchanged:: 0.5
           This method now accepts the same arguments as
           :class:`~werkzeug.test.EnvironBuilder`.  Because of this the
           `environ` parameter is now called `environ_overrides`.

        :return: request object
        i(   t   EnvironBuilderRP   N(   RA   Rc   t   popRP   t   get_requestt   close(   t   clsRC   t   kwargsRc   RP   t   builder(    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   from_values   s    
c            s      f d   } t  |    S(   s  Decorate a function as responder that accepts the request as first
        argument.  This works like the :func:`responder` decorator but the
        function is passed the request object as first argument and the
        request object will be closed automatically::

            @Request.application
            def my_wsgi_app(request):
                return Response('Hello World!')

        :param f: the WSGI callable to decorate
        :return: a new WSGI callable
        c             s@    |  d  } | $   |  d  | f   |  d   SWd  QXd  S(   Ni(    (   RC   RM   (   t   fRg   (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   application  s    (   R    (   Rg   Rk   Rl   (    (   Rk   Rg   sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyRl     s    c         C   s   t  | | | |  S(   s  Called to get a stream for the file upload.

        This must provide a file-like class with `read()`, `readline()`
        and `seek()` methods that is both writeable and readable.

        The default implementation returns a temporary file if the total
        content length is higher than 500KB.  Because many browsers do not
        provide a content length for the files only the total content
        length matters.

        :param total_content_length: the total content length of all the
                                     data in the request combined.  This value
                                     is guaranteed to be there.
        :param content_type: the mimetype of the uploaded file.
        :param filename: the filename of the uploaded file.  May be `None`.
        :param content_length: the length of this file.  This value is usually
                               not provided because webbrowsers do not provide
                               this value.
        (   R   (   RV   t   total_content_lengtht   content_typet   filenamet   content_length(    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   _get_file_stream!  s    	c         C   s   t  |  j j d   S(   s   Returns True if the request method carries content.  As of
        Werkzeug 0.9 this will be the case if a content type is transmitted.

        .. versionadded:: 0.8
        t   CONTENT_TYPE(   t   boolRU   t   get(   RV   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   want_form_data_parsed9  s    c         C   s.   |  j  |  j |  j |  j |  j |  j |  j  S(   s   Creates the form data parser.  Instanciates the
        :attr:`form_data_parser_class` with some parameters.

        .. versionadded:: 0.8
        (   t   form_data_parser_classRq   RP   t   encoding_errorst   max_form_memory_sizet   max_content_lengtht   parameter_storage_class(   RV   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   make_form_data_parserB  s    c         C   s   d |  j  k r d St |   |  j r |  j j d d  } t |  j  } t |  \ } } |  j   } | j |  j	   | | |  } n |  j
 |  j   |  j   f } |  j  } | \ | d <| d <| d <d S(   su  Method used internally to retrieve submitted data.  After calling
        this sets `form` and `files` on the request object to multi dicts
        filled with the incoming form data.  As a matter of fact the input
        stream will be empty afterwards.  You can also call this method to
        force the parsing of the form data.

        .. versionadded:: 0.8
        t   formNRr   t    t   streamt   files(   t   __dict__RN   Ru   RU   Rt   R&   R   R{   t   parset   _get_stream_for_parsingR~   Rz   (   RV   Rn   Rp   t   mimetypet   optionst   parsert   datat   d(    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   _load_form_dataO  s    

		c         C   s/   t  |  d d  } | d k	 r( t |  S|  j S(   s   This is the same as accessing :attr:`stream` with the difference
        that if it finds cached data from calling :meth:`get_data` first it
        will create a new stream out of the cached data.

        .. versionadded:: 0.9.3
        t   _cached_dataN(   t   getattrt   NoneR?   R~   (   RV   t   cached_data(    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyR   n  s    
c         C   sC   |  j  j d  } x* t | p! d  D] \ } } | j   q% Wd S(   s   Closes associated resources of this request object.  This
        closes all file handles explicitly.  You can also use the request
        object in a with statement with will automatically close it.

        .. versionadded:: 0.9
        R   N(    (   R   Rt   R5   Rf   (   RV   R   t   keyt   value(    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyRf   z  s    c         C   s   |  S(   N(    (   RV   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt	   __enter__  s    c         C   s   |  j    d  S(   N(   Rf   (   RV   t   exc_typet	   exc_valuet   tb(    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   __exit__  s    c         C   s   t  |   t |  j  S(   s2  The stream to read incoming data from.  Unlike :attr:`input_stream`
        this stream is properly guarded that you can't accidentally read past
        the length of the input.  Werkzeug will internally always refer to
        this stream to read data which makes it possible to wrap this
        object with a stream that does filtering.

        .. versionchanged:: 0.9
           This stream is now always available but might be consumed by the
           form parser later on.  Previously the stream was only set if no
           parsing happened.
        (   RN   R%   RU   (   RV   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyR~     s    
s
   wsgi.inputs   The WSGI input stream.
In general it's a bad idea to use this one because you can easily read past the boundary.  Use the :attr:`stream` instead.c         C   s7   t  t |  j j d d   |  j d |  j d |  j S(   sA  The parsed URL parameters.  By default an
        :class:`~werkzeug.datastructures.ImmutableMultiDict`
        is returned from this function.  This can be changed by setting
        :attr:`parameter_storage_class` to a different type.  This might
        be necessary if the order of the form data is important.
        t   QUERY_STRINGR}   t   errorsRg   (   R   R<   RU   Rt   Rb   Rw   Rz   (   RV   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyRC     s    c         C   s(   |  j  r t d   n  |  j d t  S(   Ns   data descriptor is disabledt   parse_form_data(   t   disable_data_descriptort   AttributeErrort   get_datat   True(   RV   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyR     s    	c         C   sz   t  |  d d  } | d k rU | r1 |  j   n  |  j j   } | rU | |  _ qU n  | rv | j |  j |  j  } n  | S(   s  This reads the buffered incoming data from the client into one
        bytestring.  By default this is cached but that behavior can be
        changed by setting `cache` to `False`.

        Usually it's a bad idea to call this method without checking the
        content length first as a client could send dozens of megabytes or more
        to cause memory problems on the server.

        Note that if the form data was already parsed this method will not
        return anything as form data parsing does not cache the data like
        this method does.  To implicitly invoke form data parsing function
        set `parse_form_data` to `True`.  When this is done the return value
        of this method will be an empty string if the form parser handles
        the data.  This generally is not necessary as if the whole data is
        cached (which is the default) the form parser will used the cached
        data to parse the form data.  Please be generally aware of checking
        the content length first in any case before calling this method
        to avoid exhausting server memory.

        If `as_text` is set to `True` the return value will be a decoded
        unicode string.

        .. versionadded:: 0.9
        R   N(	   R   R   R   R~   t   readR   t   decodeRP   Rw   (   RV   t   cachet   as_textR   t   rv(    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyR     s    c         C   s   |  j    |  j S(   s;  The form parameters.  By default an
        :class:`~werkzeug.datastructures.ImmutableMultiDict`
        is returned from this function.  This can be changed by setting
        :attr:`parameter_storage_class` to a different type.  This might
        be necessary if the order of the form data is important.
        (   R   R|   (   RV   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyR|     s    
c         C   sX   g  } xE |  j  |  j f D]1 } t | t  s= t |  } n  | j |  q Wt |  S(   s6   Combined multi dict for :attr:`args` and :attr:`form`.(   RC   R|   RF   R'   RZ   R(   (   RV   RC   R   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   values  s    c         C   s   |  j    |  j S(   s  :class:`~werkzeug.datastructures.MultiDict` object containing
        all uploaded files.  Each key in :attr:`files` is the name from the
        ``<input type="file" name="">``.  Each value in :attr:`files` is a
        Werkzeug :class:`~werkzeug.datastructures.FileStorage` object.

        Note that :attr:`files` will only contain data if the request method was
        POST, PUT or PATCH and the ``<form>`` that posted to the request had
        ``enctype="multipart/form-data"``.  It will be empty otherwise.

        See the :class:`~werkzeug.datastructures.MultiDict` /
        :class:`~werkzeug.datastructures.FileStorage` documentation for
        more details about the used data structure.
        (   R   R   (   RV   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyR     s    
c         C   s"   t  |  j |  j |  j d |  j S(   s>   Read only access to the retrieved cookie values as dictionary.Rg   (   R   RU   RP   Rw   t   dict_storage_class(   RV   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   cookies  s    	c         C   s   t  |  j  S(   sq   The headers from the WSGI environ as immutable
        :class:`~werkzeug.datastructures.EnvironHeaders`.
        (   R*   RU   (   RV   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   headers
  s    c         C   s;   t  |  j j d  p d |  j |  j  } d | j d  S(   s   Requested path as unicode.  This works a bit like the regular path
        info in the WSGI environment but will always include a leading slash,
        even if the URL root is accessed.
        t	   PATH_INFOR}   t   /(   R;   RU   Rt   RP   Rw   t   lstrip(   RV   t   raw_path(    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   path  s    c         C   s   |  j  d t |  j |  j  S(   s6   Requested path as unicode, including the query string.u   ?(   R   R=   t   query_stringRb   (   RV   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt	   full_path  s    c         C   s7   t  |  j j d  p d |  j |  j  } | j d  S(   s7   The root path of the script without the trailing slash.t   SCRIPT_NAMER}   R   (   R;   RU   Rt   RP   Rw   t   rstrip(   RV   R   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   script_root   s    c         C   s   t  |  j d |  j S(   s%   The reconstructed current URL as IRI.t   trusted_hosts(   R"   RU   R   (   RV   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyR[   '  s    c         C   s   t  |  j d t d |  j S(   s,   Like :attr:`url` but without the querystringt   strip_querystringR   (   R"   RU   R   R   (   RV   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   base_url-  s    c         C   s   t  |  j t d |  j S(   sX   The full URL root (with hostname), this is the application
        root as IRI.
        R   (   R"   RU   R   R   (   RV   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   url_root3  s    c         C   s   t  |  j d t d |  j S(   s!   Just the host with scheme as IRI.t	   host_onlyR   (   R"   RU   R   R   (   RV   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   host_url;  s    c         C   s   t  |  j d |  j S(   s.   Just the host including the port if available.R   (   R#   RU   R   (   RV   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   hostA  s    R   R}   t	   read_onlyt	   load_funct   docs%   The URL parameters as raw bytestring.t   REQUEST_METHODt   GETs?   The transmission method. (For example ``'GET'`` or ``'POST'``).c         C   s{   d |  j  k rK |  j  d j d  } |  j g  | D] } | j   ^ q2  Sd |  j  k rq |  j |  j  d g  S|  j   S(   s}   If a forwarded header exists this is a list of all ip addresses
        from the client ip to the last proxy server.
        t   HTTP_X_FORWARDED_FORt   ,t   REMOTE_ADDR(   RU   t   splitt   list_storage_classt   strip(   RV   t   addrt   x(    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   access_routeL  s    &c         C   s   |  j  j d  S(   s!   The remote address of the client.R   (   RU   Rt   (   RV   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   remote_addrX  s    t   REMOTE_USERs   
        If the server supports user authentication, and the script is
        protected, this attribute contains the username the user has
        authenticated as.s   wsgi.url_schemesC   
        URL scheme (http or https).

        .. versionadded:: 0.7c         C   s   |  j  j d d  j   d k S(   Nt   HTTP_X_REQUESTED_WITHR}   t   xmlhttprequest(   RU   Rt   t   lower(   R   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   <lambda>g  s   s   
        True if the request was triggered via a JavaScript XMLHttpRequest.
        This only works with libraries that support the `X-Requested-With`
        header and set it to "XMLHttpRequest".  Libraries that do that are
        prototype, jQuery and Mochikit and probably some more.c         C   s   |  j  d d k S(   Ns   wsgi.url_schemet   https(   RU   (   R   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyR   m  s    s    `True` if the request is secure.s   wsgi.multithreadsd   
        boolean that is `True` if the application is served by
        a multithreaded WSGI server.s   wsgi.multiprocesssu   
        boolean that is `True` if the application is served by
        a WSGI server that spawns multiple processes.s   wsgi.run_onces   
        boolean that is `True` if the application will be executed only
        once in a process lifetime.  This is the case for CGI for example,
        but it's not guaranteed that the exeuction only happens one time.N(C   R_   t
   __module__t   __doc__RP   Rw   R   Ry   Rx   R+   Rz   R-   R   R,   R   R   Rv   R   t   FalseR   R   RX   Ra   t   propertyRb   t   classmethodRj   Rl   Rq   Ru   R{   R   R   Rf   R   R   R   R~   R   t   input_streamRC   R   R   R|   R   R   R   R   R   R   R   R[   R   R   R   R   R<   R   R\   R   R   t   remote_usert   schemet   is_xhrt	   is_securet   is_multithreadt   is_multiprocesst   is_run_once(    (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyRS   X   s   +									$

													t   BaseResponsec           B   s  e  Z d  Z d Z d Z d Z e Z e Z e Z	 d% d% d% d% d% e d  Z d   Z d   Z e d% d   Z e e d   Z d	   Z d
   Z e e e d d Z [ [ d   Z d   Z e e e d d Z [ [ e d  Z d   Z e e e d d Z d   Z e d  Z d   Z d   Z d d% d% d d% d% e d  Z  d d% d  Z! e d    Z" e d    Z# d   Z$ d   Z% d   Z& d    Z' d!   Z( d"   Z) d#   Z* d$   Z+ RS(&   s  Base response class.  The most important fact about a response object
    is that it's a regular WSGI application.  It's initialized with a couple
    of response parameters (headers, body, status code etc.) and will start a
    valid WSGI response when called with the environ and start response
    callable.

    Because it's a WSGI application itself processing usually ends before the
    actual response is sent to the server.  This helps debugging systems
    because they can catch all the exceptions before responses are started.

    Here a small example WSGI application that takes advantage of the
    response objects::

        from werkzeug.wrappers import BaseResponse as Response

        def index():
            return Response('Index page')

        def application(environ, start_response):
            path = environ.get('PATH_INFO') or '/'
            if path == '/':
                response = index()
            else:
                response = Response('Not Found', status=404)
            return response(environ, start_response)

    Like :class:`BaseRequest` which object is lacking a lot of functionality
    implemented in mixins.  This gives you a better control about the actual
    API of your response objects, so you can create subclasses and add custom
    functionality.  A full featured response object is available as
    :class:`Response` which implements a couple of useful mixins.

    To enforce a new type of already existing responses you can use the
    :meth:`force_type` method.  This is useful if you're working with different
    subclasses of response objects and you want to post process them with a
    know interface.

    Per default the request object will assume all the text data is `utf-8`
    encoded.  Please refer to `the unicode chapter <unicode.txt>`_ for more
    details about customizing the behavior.

    Response can be any kind of iterable or string.  If it's a string it's
    considered being an iterable with one item which is the string passed.
    Headers can be a list of tuples or a
    :class:`~werkzeug.datastructures.Headers` object.

    Special note for `mimetype` and `content_type`:  For most mime types
    `mimetype` and `content_type` work the same, the difference affects
    only 'text' mimetypes.  If the mimetype passed with `mimetype` is a
    mimetype starting with `text/`, the charset parameter of the response
    object is appended to it.  In contrast the `content_type` parameter is
    always added as header unmodified.

    .. versionchanged:: 0.5
       the `direct_passthrough` parameter was added.

    :param response: a string or response iterable.
    :param status: a string with a status or an integer with the status code.
    :param headers: a list of headers or a
                    :class:`~werkzeug.datastructures.Headers` object.
    :param mimetype: the mimetype for the request.  See notice above.
    :param content_type: the content type for the request.  See notice above.
    :param direct_passthrough: if set to `True` :meth:`iter_encoded` is not
                               called before iteration which makes it
                               possible to pass special iterators though
                               unchanged (see :func:`wrap_file` for more
                               details.)
    s   utf-8i   s
   text/plainc         C   sS  t  | t  r | |  _ n$ | s0 t   |  _ n t |  |  _ | d  k r | d  k rr d |  j k rr |  j } n  | d  k	 r t | |  j  } n  | } n  | d  k	 r | |  j d <n  | d  k r |  j } n  t  | t  r | |  _	 n	 | |  _
 | |  _ g  |  _ | d  k rg  |  _ n1 t  | t t t f  rF|  j |  n	 | |  _ d  S(   Ns   content-types   Content-Type(   RF   R)   R   R   t   default_mimetypeR!   RP   t   default_statusR:   t   status_codet   statust   direct_passthrought	   _on_closet   responseR9   t   bytest	   bytearrayt   set_data(   RV   R   R   R   R   Rn   R   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyRX     s2    				c         C   s   |  j  j |  | S(   s  Adds a function to the internal list of functions that should
        be called as part of closing down the response.  Since 0.7 this
        function also returns the function that was passed so that this
        can be used as a decorator.

        .. versionadded:: 0.6
        (   R   RZ   (   RV   t   func(    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   call_on_close  s    c         C   sZ   |  j  r+ d t t t |  j     } n |  j r: d p= d } d |  j j | |  j f S(   Ns   %d bytest   streameds   likely-streameds   <%s %s [%s]>(	   t   is_sequencet   sumt   mapt   lent   iter_encodedt   is_streamedR^   R_   R   (   RV   t	   body_info(    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyRa     s    	"	c         C   sO   t  | t  sB | d k r* t d   n  t t | |    } n  |  | _ | S(   s  Enforce that the WSGI response is a response object of the current
        type.  Werkzeug will use the :class:`BaseResponse` internally in many
        situations like the exceptions.  If you call :meth:`get_response` on an
        exception you will get back a regular :class:`BaseResponse` object, even
        if you are using a custom subclass.

        This method can enforce a given response type, and it will also
        convert arbitrary WSGI callables into response objects if an environ
        is provided::

            # convert a Werkzeug response object into an instance of the
            # MyResponseClass subclass.
            response = MyResponseClass.force_type(response)

            # convert any WSGI application into a response object
            response = MyResponseClass.force_type(response, environ)

        This is especially useful if you want to post-process responses in
        the main dispatcher and use functionality provided by your subclass.

        Keep in mind that this will modify response objects in place if
        possible!

        :param response: a response object or wsgi application.
        :param environ: a WSGI environment object.
        :return: a response object.
        sH   cannot convert WSGI application into response objects without an environN(   RF   R   R   t	   TypeErrorRB   R^   (   Rg   R   RU   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt
   force_type  s    	c         C   s   |  t  | | |    S(   s  Create a new response object from an application output.  This
        works best if you pass it an application that returns a generator all
        the time.  Sometimes applications may use the `write()` callable
        returned by the `start_response` function.  This tries to resolve such
        edge cases automatically.  But if you don't get the expected output
        you should set `buffered` to `True` which enforces buffering.

        :param app: the WSGI application to execute.
        :param environ: the WSGI environment to execute against.
        :param buffered: set to `True` to enforce buffering.
        :return: a response object.
        (   RB   (   Rg   t   appRU   t   buffered(    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   from_app?  s    c         C   s   |  j  S(   N(   t   _status_code(   RV   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   _get_status_codeO  s    c         C   sO   | |  _  y! d | t | j   f |  _ Wn t k
 rJ d | |  _ n Xd  S(   Ns   %d %ss
   %d UNKNOWN(   R   R   t   uppert   _statust   KeyError(   RV   t   code(    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   _set_status_codeQ  s
    	!R   s   The HTTP Status code as numberc         C   s   |  j  S(   N(   R   (   RV   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   _get_status[  s    c         C   sf   t  |  |  _ y& t |  j j d  d  d  |  _ Wn* t k
 ra d |  _ d |  j |  _ n Xd  S(   Ni   i    s   0 %s(   R>   R   t   intR   R   R   t
   ValueError(   RV   R   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   _set_status]  s    &	s   The HTTP Status codec         C   s>   |  j    d j |  j    } | r: | j |  j  } n  | S(   s  The string representation of the request body.  Whenever you call
        this property the request iterable is encoded and flattened.  This
        can lead to unwanted behavior if you stream big data.

        This behavior can be disabled by setting
        :attr:`implicit_sequence_conversion` to `False`.

        If `as_text` is set to `True` the return value will be a decoded
        unicode string.

        .. versionadded:: 0.9
        R}   (   t   _ensure_sequenceR`   R   R   RP   (   RV   R   R   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyR   g  s
    
c         C   se   t  | t  r$ | j |  j  } n t |  } | g |  _ |  j ra t t |   |  j	 d <n  d S(   s   Sets a new string as response.  The value set must either by a
        unicode or bytestring.  If a unicode string is set it's encoded
        automatically to the charset of the response (utf-8 by default).

        .. versionadded:: 0.9
        s   Content-LengthN(
   RF   R9   RO   RP   R   R   t    automatically_set_content_lengtht   strR   R   (   RV   R   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyR   z  s    		s   
        A descriptor that calls :meth:`get_data` and :meth:`set_data`.  This
        should not be used and will eventually get deprecated.
        c         C   s:   y |  j    Wn t k
 r" d SXt d   |  j D  S(   s<   Returns the content length if available or `None` otherwise.c         s   s   |  ] } t  |  Vq d  S(   N(   R   (   t   .0R   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pys	   <genexpr>  s    N(   R   RL   R   R   R   (   RV   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   calculate_content_length  s
    c         C   sy   |  j  r; | r7 t |  j t  r7 t |  j  |  _ n  d S|  j rS t d   n  |  j sk t d   n  |  j   d S(   s   This method can be called by methods that need a sequence.  If
        `mutable` is true, it will also ensure that the response sequence
        is a standard Python list.

        .. versionadded:: 0.6
        Ns]   Attempted implicit sequence conversion but the response object is in direct passthrough mode.s   The response object required the iterable to be a sequence, but the implicit conversion was disabled.  Call make_sequence() yourself.(   R   RF   R   t   listR   RL   t   implicit_sequence_conversiont   make_sequence(   RV   t   mutable(    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyR     s    			c         C   sV   |  j  sR t |  j d d  } t |  j    |  _ | d k	 rR |  j |  qR n  d S(   sC  Converts the response iterator in a list.  By default this happens
        automatically if required.  If `implicit_sequence_conversion` is
        disabled, this method is not automatically called and some properties
        might raise exceptions.  This also encodes all the items.

        .. versionadded:: 0.6
        Rf   N(   R   R   R   R   R  R   R   (   RV   Rf   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyR    s
    	c         C   s    t  |  j  t |  j |  j  S(   s  Iter the response encoded with the encoding of the response.
        If the response object is invoked as WSGI application the return
        value of this method is used as application iterator unless
        :attr:`direct_passthrough` was activated.
        (   RJ   R   RR   RP   (   RV   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyR     s    R}   R   c	   	      C   s8   |  j  j d t | | | | | | | | |  j 	  d S(   s  Sets a cookie. The parameters are the same as in the cookie `Morsel`
        object in the Python standard library but it accepts unicode data, too.

        :param key: the key (name) of the cookie to be set.
        :param value: the value of the cookie.
        :param max_age: should be a number of seconds, or `None` (default) if
                        the cookie should last only as long as the client's
                        browser session.
        :param expires: should be a `datetime` object or UNIX timestamp.
        :param domain: if you want to set a cross-domain cookie.  For example,
                       ``domain=".example.com"`` will set a cookie that is
                       readable by the domain ``www.example.com``,
                       ``foo.example.com`` etc.  Otherwise, a cookie will only
                       be readable by the domain that set it.
        :param path: limits the cookie to a given path, per default it will
                     span the whole domain.
        s
   Set-CookieN(   R   t   addR   RP   (	   RV   R   R   t   max_aget   expiresR   t   domaint   securet   httponly(    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt
   set_cookie  s    c      
   C   s)   |  j  | d d d d d | d | d S(   s  Delete a cookie.  Fails silently if key doesn't exist.

        :param key: the key (name) of the cookie to be deleted.
        :param path: if the cookie that should be deleted was limited to a
                     path, the path has to be defined here.
        :param domain: if the cookie that should be deleted was limited to a
                       domain, that domain has to be defined here.
        R  i    R  R   R  N(   R  (   RV   R   R   R  (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   delete_cookie  s    	c         C   s0   y t  |  j  Wn t t f k
 r+ t SXt S(   s  If the response is streamed (the response is not an iterable with
        a length information) this property is `True`.  In this case streamed
        means that there is no information about the number of iterations.
        This is usually `True` if a generator is passed to the response object.

        This is useful for checking before applying some sort of post
        filtering that should not take place for streamed responses.
        (   R   R   R   R   R   R   (   RV   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyR     s
    
c         C   s   t  |  j t t f  S(   s   If the iterator is buffered, this property will be `True`.  A
        response object will consider an iterator to be buffered if the
        response attribute is a list or tuple.

        .. versionadded:: 0.6
        (   RF   R   t   tupleR  (   RV   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyR     s    c         C   sA   t  |  j d  r" |  j j   n  x |  j D] } |   q, Wd S(   s   Close the wrapped response if possible.  You can also use the object
        in a with statement which will automatically close it.

        .. versionadded:: 0.9
           Can now be used in a with statement.
        Rf   N(   t   hasattrR   Rf   R   (   RV   R   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyRf   	  s    c         C   s   |  S(   N(    (   RV   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyR     s    c         C   s   |  j    d  S(   N(   Rf   (   RV   R   R   R   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyR     s    c         C   s>   t  |  j    |  _ t t t t |  j    |  j d <d S(   s5  Call this method if you want to make your response object ready for
        being pickled.  This buffers the generator if there is one.  It will
        also set the `Content-Length` header to the length of the body.

        .. versionchanged:: 0.6
           The `Content-Length` header is now set.
        s   Content-LengthN(   R  R   R   R   R   R   R   R   (   RV   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   freeze  s    
c         C   s  t  |  j  } d } d } d } |  j } x_ | D]W \ } } | j   }	 |	 d k r^ | } q1 |	 d k rs | } q1 |	 d k r1 | } q1 q1 W| d k	 r)| }
 t | t  r t | d t } n  |  j	 rt
 | d t } t | t  r t |  } n  t | |  } n  | |
 k r)| | d <q)n  | d k	 rWt | t  rWt |  | d <n  d | k ond	 k  n s| d
 k rd | d <} n | d k rt |  n  |  j r|  j r| d k r| d k ry t d   |  j D  } Wn t k
 rqXt |  | d <n  | S(   sk  This is automatically called right before the response is started
        and returns headers modified for the given environment.  It returns a
        copy of the headers from the response with some modifications applied
        if necessary.

        For example the location header (if present) is joined with the root
        URL of the environment.  Also the content length is automatically set
        to zero here for certain status codes.

        .. versionchanged:: 0.6
           Previously that function was called `fix_headers` and modified
           the response object in place.  Also since 0.6, IRIs in location
           and content-location headers are handled properly.

           Also starting with 0.6, Werkzeug will attempt to set the content
           length if it is able to figure it out on its own.  This is the
           case if all the strings in the response iterable are already
           encoded and the iterable is buffered.

        :param environ: the WSGI environment of the request.
        :return: returns a new :class:`~werkzeug.datastructures.Headers`
                 object.
        u   locationu   content-locationu   content-lengtht   safe_conversiont	   root_onlyt   Locations   Content-Locationid   i   i   u   0s   Content-Lengthi0  c         s   s$   |  ] } t  t | d    Vq d S(   t   asciiN(   R   R7   (   R   R   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pys	   <genexpr>x  s   N(   R)   R   R   R   R   RF   R9   R   R   t   autocorrect_location_headerR"   R   R   R   R   R   R   t   UnicodeErrorR   (   RV   RU   R   t   locationt   content_locationRp   R   R   R   t   ikeyt   old_locationt   current_url(    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   get_wsgi_headers(  sP    				(	!	c         C   s   |  j  } | d d k sA d | k o0 d k  n sA | d k rJ d } n) |  j rg t |  j  |  j S|  j   } t | |  j  S(	   s  Returns the application iterator for the given environ.  Depending
        on the request method and the current status code the return value
        might be an empty response rather than the one from the response.

        If the request method is `HEAD` or the status code is in a range
        where the HTTP specification requires an empty response, an empty
        iterable is returned.

        .. versionadded:: 0.6

        :param environ: the WSGI environment of the request.
        :return: a response iterable.
        R   t   HEADid   i   i   i0  (   i   i0  (    (   R   R   RJ   R   R   R$   Rf   (   RV   RU   R   RI   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   get_app_iter  s    	(		c         C   s4   |  j  |  } |  j |  } | |  j | j   f S(   sF  Returns the final WSGI response as tuple.  The first item in
        the tuple is the application iterator, the second the status and
        the third the list of headers.  The response returned is created
        specially for the given environment.  For example if the request
        method in the WSGI environment is ``'HEAD'`` the response will
        be empty and only the headers and status code will be present.

        .. versionadded:: 0.6

        :param environ: the WSGI environment of the request.
        :return: an ``(app_iter, status, headers)`` tuple.
        (   R  R  R   t   to_wsgi_list(   RV   RU   R   t   app_iter(    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   get_wsgi_response  s    c         C   s)   |  j  |  \ } } } | | |  | S(   s   Process this response as WSGI application.

        :param environ: the WSGI environment.
        :param start_response: the response callable provided by the WSGI
                               server.
        :return: an application iterator
        (   R   (   RV   RU   t   start_responseR  R   R   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   __call__  s    N(,   R_   R   R   RP   R   R   R   R  R  R   R   R   RX   R   Ra   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R  R   R  R  R   R   Rf   R   R   R  R  R  R   R"  (    (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyR   {  sZ   D
	#		$											
					[		t   AcceptMixinc           B   sJ   e  Z d  Z e d    Z e d    Z e d    Z e d    Z RS(   s   A mixin for classes with an :attr:`~BaseResponse.environ` attribute
    to get all the HTTP accept headers as
    :class:`~werkzeug.datastructures.Accept` objects (or subclasses
    thereof).
    c         C   s   t  |  j j d  t  S(   so   List of mimetypes this client supports as
        :class:`~werkzeug.datastructures.MIMEAccept` object.
        t   HTTP_ACCEPT(   R   RU   Rt   R.   (   RV   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   accept_mimetypes  s    c         C   s   t  |  j j d  t  S(   sq   List of charsets this client supports as
        :class:`~werkzeug.datastructures.CharsetAccept` object.
        t   HTTP_ACCEPT_CHARSET(   R   RU   Rt   R/   (   RV   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   accept_charsets  s    c         C   s   t  |  j j d   S(   s   List of encodings this client accepts.  Encodings in a HTTP term
        are compression encodings such as gzip.  For charsets have a look at
        :attr:`accept_charset`.
        t   HTTP_ACCEPT_ENCODING(   R   RU   Rt   (   RV   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   accept_encodings  s    c         C   s   t  |  j j d  t  S(   s   List of languages this client accepts as
        :class:`~werkzeug.datastructures.LanguageAccept` object.

        .. versionchanged 0.5
           In previous versions this was a regular
           :class:`~werkzeug.datastructures.Accept` object.
        t   HTTP_ACCEPT_LANGUAGE(   R   RU   Rt   R0   (   RV   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   accept_languages  s    	(   R_   R   R   R   R%  R'  R)  R+  (    (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyR#    s
   t   ETagRequestMixinc           B   sw   e  Z d  Z e d    Z e d    Z e d    Z e d    Z e d    Z e d    Z	 e d    Z
 RS(   s   Add entity tag and cache descriptors to a request object or object with
    a WSGI environment available as :attr:`~BaseRequest.environ`.  This not
    only provides access to etags but also to the cache control header.
    c         C   s"   |  j  j d  } t | d t  S(   sw   A :class:`~werkzeug.datastructures.RequestCacheControl` object
        for the incoming cache control headers.
        t   HTTP_CACHE_CONTROLN(   RU   Rt   R   R   R2   (   RV   t   cache_control(    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyR.    s    	c         C   s   t  |  j j d   S(   s~   An object containing all the etags in the `If-Match` header.

        :rtype: :class:`~werkzeug.datastructures.ETags`
        t   HTTP_IF_MATCH(   R   RU   Rt   (   RV   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   if_match  s    c         C   s   t  |  j j d   S(   s   An object containing all the etags in the `If-None-Match` header.

        :rtype: :class:`~werkzeug.datastructures.ETags`
        t   HTTP_IF_NONE_MATCH(   R   RU   Rt   (   RV   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   if_none_match  s    c         C   s   t  |  j j d   S(   s9   The parsed `If-Modified-Since` header as datetime object.t   HTTP_IF_MODIFIED_SINCE(   R   RU   Rt   (   RV   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   if_modified_since  s    c         C   s   t  |  j j d   S(   s;   The parsed `If-Unmodified-Since` header as datetime object.t   HTTP_IF_UNMODIFIED_SINCE(   R   RU   Rt   (   RV   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   if_unmodified_since
  s    c         C   s   t  |  j j d   S(   s   The parsed `If-Range` header.

        .. versionadded:: 0.7

        :rtype: :class:`~werkzeug.datastructures.IfRange`
        t   HTTP_IF_RANGE(   R   RU   Rt   (   RV   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   if_range  s    c         C   s   t  |  j j d   S(   s{   The parsed `Range` header.

        .. versionadded:: 0.7

        :rtype: :class:`~werkzeug.datastructures.Range`
        t
   HTTP_RANGE(   R   RU   Rt   (   RV   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   range  s    (   R_   R   R   R   R.  R0  R2  R4  R6  R8  R:  (    (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyR,    s   	
t   UserAgentMixinc           B   s   e  Z d  Z e d    Z RS(   s   Adds a `user_agent` attribute to the request object which contains the
    parsed user agent of the browser that triggered the request as a
    :class:`~werkzeug.useragents.UserAgent` object.
    c         C   s   d d l  m } | |  j  S(   s   The current user agent.i(   t	   UserAgent(   t   werkzeug.useragentsR<  RU   (   RV   R<  (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt
   user_agent*  s    (   R_   R   R   R   R>  (    (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyR;  $  s   t   AuthorizationMixinc           B   s   e  Z d  Z e d    Z RS(   s   Adds an :attr:`authorization` property that represents the parsed
    value of the `Authorization` header as
    :class:`~werkzeug.datastructures.Authorization` object.
    c         C   s   |  j  j d  } t |  S(   s*   The `Authorization` object in parsed form.t   HTTP_AUTHORIZATION(   RU   Rt   R   (   RV   t   header(    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   authorization7  s    (   R_   R   R   R   RB  (    (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyR?  1  s   t   StreamOnlyMixinc           B   s   e  Z d  Z e Z e Z RS(   s'  If mixed in before the request object this will change the bahavior
    of it to disable handling of form parsing.  This disables the
    :attr:`files`, :attr:`form` attributes and will just provide a
    :attr:`stream` attribute that however is always available.

    .. versionadded:: 0.9
    (   R_   R   R   R   R   R   Ru   (    (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyRC  >  s   t   ETagResponseMixinc           B   s   e  Z d  Z e d    Z d   Z e e d  Z e d  Z d   Z	 e d  Z
 e d d d	 Z d
   Z d   Z e e e d d Z [ [ RS(   s  Adds extra functionality to a response object for etag and cache
    handling.  This mixin requires an object with at least a `headers`
    object that implements a dict like interface similar to
    :class:`~werkzeug.datastructures.Headers`.

    If you want the :meth:`freeze` method to automatically add an etag, you
    have to mixin this method before the response base class.  The default
    response class does not do that.
    c            s+     f d   } t    j j d  | t  S(   s   The Cache-Control general-header field is used to specify
        directives that MUST be obeyed by all caching mechanisms along the
        request/response chain.
        c            sC   |  r# d   j  k r#   j  d =n |  r? |  j     j  d <n  d  S(   Ns   cache-controls   Cache-Control(   R   t	   to_header(   R.  (   RV   (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt	   on_update\  s    s   cache-control(   R   R   Rt   R1   (   RV   RF  (    (   RV   sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyR.  V  s    c         C   s   t  |  } | d d k r d |  j k r> t   |  j d <n  d |  j k rx |  j   } | d k	 rx | |  j d <qx n  t | |  j j d  d |  j j d	   s d
 |  _ q n  |  S(   s7  Make the response conditional to the request.  This method works
        best if an etag was defined for the response already.  The `add_etag`
        method can be used to do that.  If called without etag just the date
        header is set.

        This does nothing if the request method in the request or environ is
        anything but GET or HEAD.

        It does not remove the body of the response because that's something
        the :meth:`__call__` function does for us automatically.

        Returns self so that you can do ``return resp.make_conditional(req)``
        but modifies the object in-place.

        :param request_or_environ: a request object or WSGI environment to be
                                   used to make the response conditional
                                   against.
        R   R   R  t   datet   Dates   content-lengths   Content-Lengtht   etags   last-modifiedi0  (   s   GETs   HEADN(   R6   R   R   R   R   R	   Rt   R   (   RV   t   request_or_environRU   t   length(    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   make_conditionale  s    c         C   s8   | s d |  j  k r4 |  j t |  j    |  n  d S(   s:   Add an etag for the current response if there is none yet.RI  N(   R   t   set_etagR   R   (   RV   t	   overwritet   weak(    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   add_etag  s    c         C   s   t  | |  |  j d <d S(   s8   Set the etag, and override the old one if there was one.t   ETagN(   R   R   (   RV   RI  RO  (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyRM    s    c         C   s   t  |  j j d   S(   s{   Return a tuple in the form ``(etag, is_weak)``.  If there is no
        ETag the return value is ``(None, None)``.
        RQ  (   R
   R   Rt   (   RV   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   get_etag  s    c         C   s*   | s |  j    n  t t |   j   d S(   s   Call this method if you want to make your response object ready for
        pickeling.  This buffers the generator if there is one.  This also
        sets the etag unless `no_etag` is set to `True`.
        N(   RP  t   superRD  R  (   RV   t   no_etag(    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyR    s    s   Accept-RangesR   s   
        The `Accept-Ranges` header.  Even though the name would indicate
        that multiple values are supported, it must be one string token only.

        The values ``'bytes'`` and ``'none'`` are common.

        .. versionadded:: 0.7c            sU     f d   } t    j j d  |  } | d  k rQ t d  d  d  d | } n  | S(   Nc            s*   |  s   j  d =n |  j     j  d <d  S(   Ns   content-ranges   Content-Range(   R   RE  (   t   rng(   RV   (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyRF    s    s   content-rangeRF  (   R   R   Rt   R   R4   (   RV   RF  R   (    (   RV   sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   _get_content_range  s    	c         C   sI   | s |  j  d =n2 t | t  r2 | |  j  d <n | j   |  j  d <d  S(   Ns   content-ranges   Content-Range(   R   RF   R8   RE  (   RV   R   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   _set_content_range  s
    s   
        The `Content-Range` header as
        :class:`~werkzeug.datastructures.ContentRange` object.  Even if the
        header is not set it wil provide such an object for easier
        manipulation.

        .. versionadded:: 0.7(   R_   R   R   R   R.  RL  R   RP  RM  RR  R  R    t   accept_rangesRV  RW  t   content_range(    (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyRD  K  s   		$							t   ResponseStreamc           B   sY   e  Z d  Z d Z d   Z d   Z d   Z d   Z d   Z d   Z	 e
 d    Z RS(	   s   A file descriptor like object used by the :class:`ResponseStreamMixin` to
    represent the body of the stream.  It directly pushes into the response
    iterable of the response object.
    s   wb+c         C   s   | |  _  t |  _ d  S(   N(   R   R   t   closed(   RV   R   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyRX     s    	c         C   sB   |  j  r t d   n  |  j j d t  |  j j j |  d  S(   Ns   I/O operation on closed fileR  (   R[  R   R   R   R   RZ   (   RV   R   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   write  s    	c         C   s"   x | D] } |  j  |  q Wd  S(   N(   R\  (   RV   t   seqRQ   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt
   writelines  s    c         C   s   t  |  _ d  S(   N(   R   R[  (   RV   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyRf     s    c         C   s   |  j  r t d   n  d  S(   Ns   I/O operation on closed file(   R[  R   (   RV   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   flush  s    	c         C   s   |  j  r t d   n  t S(   Ns   I/O operation on closed file(   R[  R   R   (   RV   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   isatty  s    	c         C   s
   |  j  j S(   N(   R   RP   (   RV   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   encoding  s    (   R_   R   R   t   modeRX   R\  R^  Rf   R_  R`  R   Ra  (    (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyRZ    s   						t   ResponseStreamMixinc           B   s   e  Z d  Z e d    Z RS(   s   Mixin for :class:`BaseRequest` subclasses.  Classes that inherit from
    this mixin will automatically get a :attr:`stream` property that provides
    a write-only interface to the response iterable.
    c         C   s
   t  |   S(   s+   The response iterable as write-only stream.(   RZ  (   RV   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyR~     s    (   R_   R   R   R   R~   (    (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyRc    s   t   CommonRequestDescriptorsMixinc           B   s   e  Z d  Z e d d d Z e d    Z e d d d Z e d d d Z e d	 d d
 Z	 e d d e d d Z e d d e d d Z d   Z e d    Z e d    Z e d    Z RS(   s   A mixin for :class:`BaseRequest` subclasses.  Request objects that
    mix this class in will automatically get descriptors for a couple of
    HTTP headers with automatic type conversion.

    .. versionadded:: 0.5
    Rr   R   s   
        The Content-Type entity-header field indicates the media type of
        the entity-body sent to the recipient or, in the case of the HEAD
        method, the media type that would have been sent had the request
        been a GET.c         C   s   t  |  j  S(   s   The Content-Length entity-header field indicates the size of the
        entity-body in bytes or, in the case of the HEAD method, the size of
        the entity-body that would have been sent had the request been a
        GET.
        (   R&   RU   (   RV   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyRp   	  s    t   HTTP_CONTENT_ENCODINGs  
        The Content-Encoding entity-header field is used as a modifier to the
        media-type.  When present, its value indicates what additional content
        codings have been applied to the entity-body, and thus what decoding
        mechanisms must be applied in order to obtain the media-type
        referenced by the Content-Type header field.

        .. versionadded:: 0.9t   HTTP_CONTENT_MD5s  
         The Content-MD5 entity-header field, as defined in RFC 1864, is an
         MD5 digest of the entity-body for the purpose of providing an
         end-to-end message integrity check (MIC) of the entity-body.  (Note:
         a MIC is good for detecting accidental modification of the
         entity-body in transit, but is not proof against malicious attacks.)

        .. versionadded:: 0.9t   HTTP_REFERERs  
        The Referer[sic] request-header field allows the client to specify,
        for the server's benefit, the address (URI) of the resource from which
        the Request-URI was obtained (the "referrer", although the header
        field is misspelled).t	   HTTP_DATEs   
        The Date general-header field represents the date and time at which
        the message was originated, having the same semantics as orig-date
        in RFC 822.t   HTTP_MAX_FORWARDSs   
         The Max-Forwards request-header field provides a mechanism with the
         TRACE and OPTIONS methods to limit the number of proxies or gateways
         that can forward the request to the next inbound server.c         C   s4   t  |  d  s0 t |  j j d d   |  _ n  d  S(   Nt   _parsed_content_typeRr   R}   (   R  R   RU   Rt   Rj  (   RV   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   _parse_content_type0  s    c         C   s   |  j    |  j d S(   s   Like :attr:`content_type` but without parameters (eg, without
        charset, type etc.).  For example if the content
        type is ``text/html; charset=utf-8`` the mimetype would be
        ``'text/html'``.
        i    (   Rk  Rj  (   RV   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyR   5  s    
c         C   s   |  j    |  j d S(   s   The mimetype parameters as dict.  For example if the content
        type is ``text/html; charset=utf-8`` the params would be
        ``{'charset': 'utf-8'}``.
        i   (   Rk  Rj  (   RV   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   mimetype_params?  s    
c         C   s   t  |  j j d d   S(   sj  The Pragma general-header field is used to include
        implementation-specific directives that might apply to any recipient
        along the request/response chain.  All pragma directives specify
        optional behavior from the viewpoint of the protocol; however, some
        systems MAY require that behavior be consistent with the directives.
        t   HTTP_PRAGMAR}   (   R   RU   Rt   (   RV   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   pragmaH  s    N(   R_   R   R   R   Rn   R   Rp   t   content_encodingt   content_md5t   referrerR   R   RG  R   t   max_forwardsRk  R   R   Rl  Rn  (    (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyRd    s$   												
	t   CommonResponseDescriptorsMixinc           B   s  e  Z d  Z d   Z d   Z d   Z e e e d d Z e e d d Z e	 d d d Z
 e	 d	 d% e e d d
 Z e	 d d d Z e	 d d% e e d d Z e	 d d d Z e	 d d d Z e	 d d d Z e	 d d% e e d d Z e	 d d% e e d d Z e	 d d% e e d d Z d   Z d   Z e e e d d Z d% d  Z e d d d  Z e d! d d" Z e d# d d$ Z [ [ [ [ [ RS(&   s   A mixin for :class:`BaseResponse` subclasses.  Response objects that
    mix this class in will automatically get descriptors for a couple of
    HTTP headers with automatic type conversion.
    c         C   s3   |  j  j d  } | r/ | j d  d j   Sd  S(   Ns   content-typet   ;i    (   R   Rt   R   R   (   RV   t   ct(    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   _get_mimetypeY  s    c         C   s   t  | |  j  |  j d <d  S(   Ns   Content-Type(   R!   RP   R   (   RV   R   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   _set_mimetype^  s    c            s;     f d   } t    j j d d   d } t | |  S(   Nc            s   t    j |     j d <d  S(   Ns   Content-Type(   R   R   R   (   R   (   RV   (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyRF  b  s    s   content-typeR}   i   (   R   R   Rt   R3   (   RV   RF  R   (    (   RV   sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   _get_mimetype_paramsa  s    R   s9   
        The mimetype (content type without charset etc.)s   
        The mimetype parameters as dict.  For example if the content
        type is ``text/html; charset=utf-8`` the params would be
        ``{'charset': 'utf-8'}``.

        .. versionadded:: 0.5
        R  s   
        The Location response-header field is used to redirect the recipient
        to a location other than the Request-URI for completion of the request
        or identification of a new resource.t   Ages  
        The Age response-header field conveys the sender's estimate of the
        amount of time since the response (or its revalidation) was
        generated at the origin server.

        Age values are non-negative decimal integers, representing time in
        seconds.s   Content-Types   
        The Content-Type entity-header field indicates the media type of the
        entity-body sent to the recipient or, in the case of the HEAD method,
        the media type that would have been sent had the request been a GET.
    s   Content-Lengths  
        The Content-Length entity-header field indicates the size of the
        entity-body, in decimal number of OCTETs, sent to the recipient or,
        in the case of the HEAD method, the size of the entity-body that would
        have been sent had the request been a GET.s   Content-Locations   
        The Content-Location entity-header field MAY be used to supply the
        resource location for the entity enclosed in the message when that
        entity is accessible from a location separate from the requested
        resource's URI.s   Content-Encodingsd  
        The Content-Encoding entity-header field is used as a modifier to the
        media-type.  When present, its value indicates what additional content
        codings have been applied to the entity-body, and thus what decoding
        mechanisms must be applied in order to obtain the media-type
        referenced by the Content-Type header field.s   Content-MD5s|  
         The Content-MD5 entity-header field, as defined in RFC 1864, is an
         MD5 digest of the entity-body for the purpose of providing an
         end-to-end message integrity check (MIC) of the entity-body.  (Note:
         a MIC is good for detecting accidental modification of the
         entity-body in transit, but is not proof against malicious attacks.)
        RH  s   
        The Date general-header field represents the date and time at which
        the message was originated, having the same semantics as orig-date
        in RFC 822.t   Expiress   
        The Expires entity-header field gives the date/time after which the
        response is considered stale. A stale cache entry may not normally be
        returned by a cache.s   Last-Modifieds   
        The Last-Modified entity-header field indicates the date and time at
        which the origin server believes the variant was last modified.c         C   sU   |  j  j d  } | d  k r" d  S| j   rK t j   t d t |   St |  S(   Ns   retry-aftert   seconds(	   R   Rt   R   t   isdigitR   t   utcnowR   R   R   (   RV   R   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   _get_retry_after  s    c         C   sg   | d  k r, d |  j k r( |  j d =n  d  St | t  rJ t |  } n t |  } | |  j d <d  S(   Ns   retry-afters   Retry-After(   R   R   RF   R   R   R   (   RV   R   (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   _set_retry_after  s    s   
        The Retry-After response-header field can be used with a 503 (Service
        Unavailable) response to indicate how long the service is expected
        to be unavailable to the requesting client.

        Time in seconds until expiration or date.c            s1     f d   }   f d   } t  | | d | S(   Nc            s+      f d   } t    j j   |  S(   Nc            sC   |  r#    j  k r#   j   =n |  r? |  j     j   <n  d  S(   N(   R   RE  (   t
   header_set(   RV   t   name(    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyRF    s    (   R   R   Rt   (   RV   RF  (   R  (   RV   sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   fget  s    c            sI   | s |  j    =n2 t | t  r2 | |  j    <n t |  |  j    <d  S(   N(   R   RF   R8   R   (   RV   R   (   R  (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   fset  s
    R   (   R   (   R  R   R  R  (    (   R  sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   _set_property  s    t   Varys   
         The Vary field value indicates the set of request-header fields that
         fully determines, while the response is fresh, whether a cache is
         permitted to use the response to reply to a subsequent request
         without revalidation.s   Content-Languages   
         The Content-Language entity-header field describes the natural
         language(s) of the intended audience for the enclosed entity.  Note
         that this might not be equivalent to all the languages used within
         the entity-body.t   AllowsS  
        The Allow entity-header field lists the set of methods supported
        by the resource identified by the Request-URI. The purpose of this
        field is strictly to inform the recipient of valid methods
        associated with the resource. An Allow header field MUST be
        present in a 405 (Method Not Allowed) response.N(    R_   R   R   Rv  Rw  Rx  R   R   Rl  R    R  R   R   R   t   ageRn   R   R   Rp   R  Ro  Rp  RG  R  t   last_modifiedR~  R  t   retry_afterR  t   varyt   content_languaget   allow(    (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyRs  S  sT   																														t   WWWAuthenticateMixinc           B   s   e  Z d  Z e d    Z RS(   s>   Adds a :attr:`www_authenticate` property to a response object.c            s.     f d   }   j  j d  } t | |  S(   s/   The `WWW-Authenticate` header in a parsed form.c            sC   |  r# d   j  k r#   j  d =n |  r? |  j     j  d <n  d  S(   Ns   www-authenticates   WWW-Authenticate(   R   RE  (   t   www_auth(   RV   (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyRF    s    s   www-authenticate(   R   Rt   R   (   RV   RF  RA  (    (   RV   sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   www_authenticate  s    (   R_   R   R   R   R  (    (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyR    s   t   Requestc           B   s   e  Z d  Z RS(   sr  Full featured request object implementing the following mixins:

    - :class:`AcceptMixin` for accept header parsing
    - :class:`ETagRequestMixin` for etag and cache control handling
    - :class:`UserAgentMixin` for user agent introspection
    - :class:`AuthorizationMixin` for http auth handling
    - :class:`CommonRequestDescriptorsMixin` for common headers
    (   R_   R   R   (    (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyR    s   
t   PlainRequestc           B   s   e  Z d  Z RS(   s[   A request object without special form parsing capabilities.

    .. versionadded:: 0.9
    (   R_   R   R   (    (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyR     s   t   Responsec           B   s   e  Z d  Z RS(   sf  Full featured response object implementing the following mixins:

    - :class:`ETagResponseMixin` for etag and cache control handling
    - :class:`ResponseStreamMixin` to add support for the `stream` property
    - :class:`CommonResponseDescriptorsMixin` for various HTTP descriptors
    - :class:`WWWAuthenticateMixin` for HTTP authentication support
    (   R_   R   R   (    (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyR    s   	N(_   R   t	   functoolsR    R   R   t   werkzeug.httpR   R   R   R   R   R   R	   R
   R   R   R   R   R   R   R   R   R   R   R   R   R   R   t   werkzeug.urlsR   R   R   t   werkzeug.formparserR   R   t   werkzeug.utilsR   R   R    R!   t   werkzeug.wsgiR"   R#   R$   R%   R&   t   werkzeug.datastructuresR'   R(   R)   R*   R+   R,   R-   R.   R/   R0   R1   R2   R3   R4   R5   t   werkzeug._internalR6   t   werkzeug._compatR7   R8   R9   R:   R;   R<   R=   R>   R?   RB   RJ   RN   RR   t   objectRS   R   R#  R,  R;  R?  RC  RD  RZ  Rc  Rd  Rs  R  R  R  R  (    (    (    sW   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/werkzeug/wrappers.pyt   <module>   sL   "(d@					  %  B+>}'X