ó
h€
\c           @   sT   d  d l  Z  d  d l m Z d  d l Z e j d e ƒ d e f d „  ƒ  Yƒ Z d S(   iÿÿÿÿN(   t   contextmanagert   slotst   Settingsc           B   sÔ   e  Z d  Z e j d e ƒ Z e j d e ƒ Z e j d e ƒ Z	 e j d d ƒ Z e j d e ƒ Z e j d e ƒ Z e j d e ƒ Z e j d e ƒ Z e j d e j e j ƒ ƒ Z e d „  ƒ Z d „  Z RS(   sI  

    :param strict: boolean to indicate if the lxml should be parsed a 'strict'.
      If false then the recover mode is enabled which tries to parse invalid
      XML as best as it can.
    :type strict: boolean
    :param raw_response: boolean to skip the parsing of the XML response by
     zeep but instead returning the raw data

    :param forbid_dtd: disallow XML with a <!DOCTYPE> processing instruction
    :type forbid_dtd: bool
    :param forbid_entities: disallow XML with <!ENTITY> declarations inside the DTD
    :type forbid_entities: bool
    :param forbid_external: disallow any access to remote or local resources
      in external entities or DTD and raising an ExternalReferenceForbidden
      exception when a DTD or entity references an external resource.
    :type forbid_entities: bool
    :param xml_huge_tree: disable lxml/libxml2 security restrictions and
                          support very deep trees and very long text content

    :param force_https: Force all connections to HTTPS if the WSDL is also
      loaded from an HTTPS endpoint. (default: true)
    :type force_https: bool
    :param extra_http_headers: Additional HTTP headers to be sent to the
     transport. This can be used in combination with the context manager
     approach to add http headers for specific calls.
    :type extra_headers: list

    t   defaultc         k   s°   i  } x@ | j  ƒ  D]2 \ } } t |  | ƒ | | <t |  j | | ƒ q Wd  Vx[ | j  ƒ  D]M \ } } t |  | ƒ } | | k r• t |  j | ƒ q[ t |  j | | ƒ q[ Wd  S(   N(   t   itemst   getattrt   setattrt   _tlst   delattr(   t   selft   optionst   currentt   keyt   valueR   (    (    sB   /data/av2000/b2b/venv/lib/python2.7/site-packages/zeep/settings.pyt   __call__5   s    c         C   sD   | d k r. t  |  j | ƒ r. t |  j | ƒ St t |  ƒ j | ƒ S(   NR   (   t   hasattrR   R   t   superR   t   __getattribute__(   R	   R   (    (    sB   /data/av2000/b2b/venv/lib/python2.7/site-packages/zeep/settings.pyR   E   s    N(   t   __name__t
   __module__t   __doc__t   attrt   ibt   Truet   strictt   Falset   raw_responset   force_httpst   Nonet   extra_http_headerst   xml_huge_treet
   forbid_dtdt   forbid_entitiest   forbid_externalt   Factoryt	   threadingt   localR   R    R   R   (    (    (    sB   /data/av2000/b2b/venv/lib/python2.7/site-packages/zeep/settings.pyR      s   (   R#   t
   contextlibR    R   t   sR   t   objectR   (    (    (    sB   /data/av2000/b2b/venv/lib/python2.7/site-packages/zeep/settings.pyt   <module>   s   