ó
f#ñ]c           @  s  d  d l  m Z d  d l Z d  d l Z d  d l Z d  d l Z d  d l Z d  d l Z d  d l Z d  d l	 j
 j Z e j
 j j d ƒ Z d Z e j e k r² e j e ƒ ‚ n  e j
 j j ƒ  Z d  d l Z d  d l Z e j j d d e ƒZ e j d d g ƒ e j j j j Z e j d d g ƒ d d d	 „ Z! d d
 „ Z" d e j# j$ j% e j# j& j' f d „  ƒ  YZ( e j# j) j* d e( d d ƒ e( _+ e( j+ j, d d d d ƒ e( _- e( j. e( j+ ƒ e( e _( d e j# j$ j/ f d „  ƒ  YZ0 e j# j) j1 d e j# j$ j2 d ƒ ƒ e0 _3 e j# j) j4 ƒ  e0 _5 e0 j5 j6 d d ƒ e0 j. e0 j3 e0 j5 ƒ e j7 d d e0 ƒ e0 e _0 d e j# j$ j% e j# j& j' f d „  ƒ  YZ8 e j# j) j* d e8 d d ƒ e8 _+ e8 j+ j, d d d d ƒ e8 _9 e8 j+ j, d d d d ƒ e8 _: e8 j. e8 j+ ƒ e8 e _8 d e j# j$ j/ f d „  ƒ  YZ; e j# j) j4 ƒ  e; _5 e; j5 j6 d d  ƒ e; j. e; j5 ƒ e j7 d d! e; ƒ e; e _; d" e j# j$ j/ f d# „  ƒ  YZ< e j# j) j4 ƒ  e< _5 e< j5 j6 d d$ ƒ e< j. e< j5 ƒ e j7 d d% e< ƒ e< e _< d& e j# j& j= f d' „  ƒ  YZ> e j# j) j* d e> ƒ e> _+ e j# j) j4 ƒ  e> _5 d e> _- e> j. e> j+ e> j5 ƒ e> e _> d( e j j j j? f d) „  ƒ  YZ@ e@ e _@ e j# j& jA e j jB e d* ƒ e@ d+ e j
 j jC d, d- d. ƒ ƒZD e j7 d eD jE ƒ  jF ƒ  eD ƒ d/ „  aG tG ƒ  e@ _H d S(0   iÿÿÿÿ(   t   unicode_literalsNu-   urn:uuid:5f673cbc-9099-11e7-b77e-3497f68b2e96u   1.2.6u   http://www.w3.org/ns/wsdl/httpt   create_if_missingu   typeBindingu   elementBindingc         C  sÒ   t  j t  j k r: t  j j j |  ƒ } t | j d | ƒS| d k rU t	 j
 ƒ  } n  t  j j j d | d | ƒ } | j ƒ  } |  } t | t j ƒ r¬ | j t  j ƒ } n  | j t j | ƒ ƒ | j ƒ  } | S(   uý  Parse the given XML and use the document element to create a
    Python instance.

    @param xml_text An XML document.  This should be data (Python 2
    str or Python 3 bytes), or a text (Python 2 unicode or Python 3
    str) in the L{pyxb._InputEncoding} encoding.

    @keyword default_namespace The L{pyxb.Namespace} instance to use as the
    default namespace where there is no default namespace in scope.
    If unspecified or C{None}, the namespace of the module containing
    this function will be used.

    @keyword location_base: An object to be recorded as the base of all
    L{pyxb.utils.utility.Location} instances associated with events and
    objects handled by the parser.  You might pass the URI from which
    the document was obtained.
    t   default_namespacet   fallback_namespacet   location_baseN(   t   pyxbt   XMLStyle_saxert	   _XMLStylet   utilst   domutilst   StringToDOMt   CreateFromDOMt   documentElementt   Nonet	   Namespacet   fallbackNamespacet   bindingt   saxert   make_parsert   getContentHandlert
   isinstancet   _sixt	   text_typet   encodet   _InputEncodingt   parset   iot   BytesIOt
   rootObject(   t   xml_textR   R   t   domR   t   handlert   xmldt   instance(    (    sS   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/raw/whttp.pyt   CreateFromDocument'   s    c         C  s4   | d k r t j ƒ  } n  t j j j j |  | ƒ S(   uÖ   Create a Python instance from the given DOM node.
    The node tag must correspond to an element declaration in this module.

    @deprecated: Forcing use of DOM interface is unnecessary; use L{CreateFromDocument}.N(   R   R   R   R   R   t   basist   elementt   AnyCreateFromDOM(   t   nodeR   (    (    sS   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/raw/whttp.pyR   H   s    t   STD_ANONc           B  s5   e  Z d  Z d Z e j j j d d d ƒ Z	 d Z
 RS(   u   An atomic simple type.uG   /tmp/pyxbdist.WUiBAra/PyXB-1.2.6/pyxb/bundles/wssplat/schemas/whttp.xsdi"   i   N(   t   __name__t
   __module__t   __doc__R   t   _ExpandedNameR   R   t   utilityt   Locationt   _XSDLocationt   _Documentation(    (    (    sS   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/raw/whttp.pyR'   S   s   t   value_datatypet   enum_prefixt   unicode_valueu   #anyt   tagu   anyt   queryParameterTypec           B  sD   e  Z d  Z e j j e d ƒ Z e j j	 j
 d d d ƒ Z d Z RS(   u   An atomic simple type.u   queryParameterTypeuG   /tmp/pyxbdist.WUiBAra/PyXB-1.2.6/pyxb/bundles/wssplat/schemas/whttp.xsdi1   i   N(   R(   R)   R*   R   t	   namespacet   ExpandedNameR   R+   R   R,   R-   R.   R   R/   (    (    (    sS   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/raw/whttp.pyR4   `   s   t   valuei   t   patternu)   [&;a-zA-Z0-9\-\._~!$'\(\):@/\?\*\+,]{1,1}u   queryParameterTypet	   STD_ANON_c           B  s5   e  Z d  Z d Z e j j j d d d ƒ Z	 d Z
 RS(   u   An atomic simple type.uG   /tmp/pyxbdist.WUiBAra/PyXB-1.2.6/pyxb/bundles/wssplat/schemas/whttp.xsdiA   i   N(   R(   R)   R*   R   R+   R   R   R,   R-   R.   R/   (    (    (    sS   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/raw/whttp.pyR9   p   s   u   basicu   digestt   versionTypec           B  sD   e  Z d  Z e j j e d ƒ Z e j j	 j
 d d d ƒ Z d Z RS(   u   An atomic simple type.u   versionTypeuG   /tmp/pyxbdist.WUiBAra/PyXB-1.2.6/pyxb/bundles/wssplat/schemas/whttp.xsdiJ   i   N(   R(   R)   R*   R   R5   R6   R   R+   R   R,   R-   R.   R   R/   (    (    (    sS   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/raw/whttp.pyR:   ~   s   u   [0-9]+\.[0-9]+u   versionTypet   httpTokenTypec           B  sD   e  Z d  Z e j j e d ƒ Z e j j	 j
 d d d ƒ Z d Z RS(   u   An atomic simple type.u   httpTokenTypeuG   /tmp/pyxbdist.WUiBAra/PyXB-1.2.6/pyxb/bundles/wssplat/schemas/whttp.xsdiP   i   N(   R(   R)   R*   R   R5   R6   R   R+   R   R,   R-   R.   R   R/   (    (    (    sS   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/raw/whttp.pyR;   Œ   s   u   [!#-'*+\-.0-9A-Z^-z|~]+u   httpTokenTypet
   STD_ANON_2c           B  sJ   e  Z d  Z d Z e j j j d d d ƒ Z	 d Z
 e j j j e f Z RS(   uD   Simple type that is a union of pyxb.binding.datatypes.int, STD_ANON.uG   /tmp/pyxbdist.WUiBAra/PyXB-1.2.6/pyxb/bundles/wssplat/schemas/whttp.xsdi    i   N(   R(   R)   R*   R   R+   R   R   R,   R-   R.   R/   R   t	   datatypest   intR'   t   _MemberTypes(    (    (    sS   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/raw/whttp.pyR<   ›   s
   t   CTD_ANONc           B  s­  e  Z d  Z d Z e j j j j	 Z
 e Z d Z e j j j d d d ƒ Z e j j j j j j ƒ  Z e j j j j j j ƒ  Z e j j j e j j d d ƒ d d e j d e ƒZ  e j j j d d d ƒ e  _! e j j j d d d ƒ e  _" e# e  j$ e  j% d d ƒ Z& e j j j e j j d d	 ƒ d	 d
 e j j' j( d e ƒZ) e j j j d d d ƒ e) _! e j j j d d d ƒ e) _" e# e) j$ e) j% d d ƒ Z* e j j j e j j d d ƒ d d e j j' j+ ƒ Z, e j j j d d d ƒ e, _! e j j j d d d ƒ e, _" e# e, j$ e, j% d d ƒ Z- e j j j. d e j j j. j/ d e j j j. j0 d f ƒ Z1 e j2 i  ƒ e j2 i e  e  j& ƒ  6e) e) j& ƒ  6e, e, j& ƒ  6ƒ RS(   u7   Complex type [anonymous] with content type ELEMENT_ONLYuG   /tmp/pyxbdist.WUiBAra/PyXB-1.2.6/pyxb/bundles/wssplat/schemas/whttp.xsdiW   i   u   nameu(   __httpwww_w3_orgnswsdlhttp_CTD_ANON_namet   requirediZ   i   u   typeu(   __httpwww_w3_orgnswsdlhttp_CTD_ANON_typei[   u   requiredu,   __httpwww_w3_orgnswsdlhttp_CTD_ANON_requiredi\   t   process_contentst   namespace_constraintu   http://www.w3.org/ns/wsdlN(3   R(   R)   R*   R   t   _TypeDefinitionR   R   R#   t   complexTypeDefinitiont   _CT_ELEMENT_ONLYt   _ContentTypeTagt   Falset	   _AbstractR+   R   R,   R-   R.   t   bundlest   wssplatt   wsdl20t   ExtensibleDocumentedTypet   _ElementMapt   copyt   _AttributeMapt   contentt   AttributeUseR5   R6   t   _module_typeBindingsR;   t   Truet   _CTD_ANON__namet   _DeclarationLocationt   _UseLocationt   propertyR7   t   sett   nameR=   t   QNamet   _CTD_ANON__typet   typet   booleant   _CTD_ANON__requiredRA   t   Wildcardt   PC_laxt   NC_nott   _AttributeWildcardt   update(    (    (    sS   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/raw/whttp.pyR@   ¬   s4   6<6<	u   headert   locationuG   /tmp/pyxbdist.WUiBAra/PyXB-1.2.6/pyxb/bundles/wssplat/schemas/whttp.xsdiV   i   c       
   C  sM  b  d d  l j j }  t ƒ  } |  j d d d d  d t j j j	 d d d ƒ ƒ } | j
 | ƒ g  } t ƒ  } | j
 |  j | t ƒ ƒ t j j j t j t j j t d	 ƒ ƒ t j j j	 d d d ƒ ƒ } |  j | d
 t d | d t ƒ} | j | ƒ g  } | j |  j | |  j | t ƒ g ƒ ƒ | j | ƒ |  j | | t d d  ƒS(   Niÿÿÿÿt   mini    t   maxt   metadatauH   /tmp/pyxbdist.WUiBAra/PyXB-1.2.6/pyxb/bundles/wssplat/schemas/wsdl20.xsdi%   i   u   documentationt
   is_initialt   final_updatet   is_unordered_catenationt   containing_state(   t   _BuildAutomatont   pyxb.utils.facR   t   facRY   t   CounterConditionR   R   R,   R-   t   addt   UpdateInstructionRH   R   RQ   t
   ElementUseR@   t
   _UseForTagR5   R6   t   _Namespace_wsdlt   StateRT   t   appendt
   Transitiont   _set_transitionSett	   Automaton(   Ro   t   counterst   cc_0t   statesRj   t   symbolt   st_0t   transitions(    (    sS   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/raw/whttp.pyRm   á   s     	3	E!(I   t
   __future__R    R   t   pyxb.bindingt   pyxb.binding.saxerR   t   pyxb.utils.utilityt   pyxb.utils.domutilst   syst   pyxb.utils.sixR   t   sixR   R,   t   UniqueIdentifiert   _GenerationUIDt   _PyXBVersiont   __version__t   PyXBVersionErrort   ObjectRS   t   pyxb.binding.datatypest   pyxb.bundles.wssplat.wsdl20R5   t   NamespaceForURIRT   R   t   configureCategoriesRJ   RK   RL   Ru   R   R"   R   R   R=   t   tokenR#   t   enumeration_mixinR'   t   facetst   CF_enumerationt   _CF_enumerationt   addEnumerationt   anyt   _InitializeFacetMapt   stringR4   t	   CF_lengtht   nonNegativeIntegert
   _CF_lengtht
   CF_patternt   _CF_patternt
   addPatternt   addCategoryObjectR9   t   basict   digestR:   R;   t	   STD_unionR<   RM   R@   R$   R6   R-   t   headerRZ   t	   localNameRm   t
   _Automaton(    (    (    sS   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/raw/whttp.pyt   <module>   s‚   !+!	*
	+!					
	"-	B	