ó
f#ñ]c           @  sC  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 j/ d d e( ƒ e( e _( d e j# j& j0 f d „  ƒ  YZ1 e1 j. ƒ  e1 e _1 d e j# j& j2 f d „  ƒ  YZ3 e j# j) j* d e3 ƒ e3 _+ e j# j) j4 ƒ  e3 _5 d e3 _- e3 j. e3 j+ e3 j5 ƒ e3 e _3 d e j# j& j2 f d „  ƒ  YZ6 e j# j) j* d e6 ƒ e6 _+ e j# j) j4 ƒ  e6 _5 d e6 _- e6 j. e6 j+ e6 j5 ƒ e6 e _6 d e j j j j7 f d „  ƒ  YZ8 e8 e _8 d e j j j j7 f d „  ƒ  YZ9 e9 e _9 e j# j& j: e j j; e d ƒ e8 d e j
 j j< d  d! d" ƒ ƒZ= e j/ d e= j> ƒ  j? ƒ  e= ƒ e j# j& j: e j j; e d# ƒ e9 d e j
 j j< d  d$ d" ƒ ƒZ@ e j/ d e@ j> ƒ  j? ƒ  e@ ƒ d% „  aA tA ƒ  e8 _B d& „  aC tC ƒ  e9 _B d S('   iÿÿÿÿ(   t   unicode_literalsNu-   urn:uuid:605b9000-9099-11e7-b77e-3497f68b2e96u   1.2.6u   http://www.w3.org/ns/wsdl/soapt   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/wsoap.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/wsoap.pyR   H   s    t   TokenAnyc           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   TokenAnyuG   /tmp/pyxbdist.WUiBAra/PyXB-1.2.6/pyxb/bundles/wssplat/schemas/wsoap.xsdi7   i   N(   t   __name__t
   __module__t   __doc__R   t	   namespacet   ExpandedNameR   t   _ExpandedNameR   t   utilityt   Locationt   _XSDLocationR   t   _Documentation(    (    (    sS   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/raw/wsoap.pyR'   S   s   t   value_datatypet   enum_prefixt   unicode_valueu   #anyt   tagu   anyu   TokenAnyt   STD_ANONc           B  sD   e  Z d  Z d Z e j j j d d d ƒ Z	 d Z
 e j j j Z RS(   u;   Simple type that is a list of pyxb.binding.datatypes.QName.uG   /tmp/pyxbdist.WUiBAra/PyXB-1.2.6/pyxb/bundles/wssplat/schemas/wsoap.xsdiF   i   N(   R(   R)   R*   R   R-   R   R   R.   R/   R0   R1   R   t	   datatypest   QNamet	   _ItemType(    (    (    sS   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/raw/wsoap.pyR6   b   s
   t	   STD_ANON_c           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(   uF   Simple type that is a union of pyxb.binding.datatypes.QName, TokenAny.uG   /tmp/pyxbdist.WUiBAra/PyXB-1.2.6/pyxb/bundles/wssplat/schemas/wsoap.xsdi>   i   N(   R(   R)   R*   R   R-   R   R   R.   R/   R0   R1   R   R7   R8   R'   t   _MemberTypes(    (    (    sS   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/raw/wsoap.pyR:   p   s
   t
   STD_ANON_2c           B  sA   e  Z d  Z d Z e j j j d d d ƒ Z	 d Z
 e e f Z RS(   u2   Simple type that is a union of TokenAny, STD_ANON.uG   /tmp/pyxbdist.WUiBAra/PyXB-1.2.6/pyxb/bundles/wssplat/schemas/wsoap.xsdiD   i   N(   R(   R)   R*   R   R-   R   R   R.   R/   R0   R1   R'   R6   R;   (    (    (    sS   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/raw/wsoap.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 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* j, d f ƒ Z- e j. i  ƒ e j. i e  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/wsoap.xsdi!   i   u   refu'   __httpwww_w3_orgnswsdlsoap_CTD_ANON_reft   requiredi$   i   u   requiredu,   __httpwww_w3_orgnswsdlsoap_CTD_ANON_requiredi%   t   process_contentst   namespace_constraintu   http://www.w3.org/ns/wsdlN(0   R(   R)   R*   R   t   _TypeDefinitionR   R   R#   t   complexTypeDefinitiont   _CT_ELEMENT_ONLYt   _ContentTypeTagt   Falset	   _AbstractR-   R   R.   R/   R0   t   bundlest   wssplatt   wsdl20t   ExtensibleDocumentedTypet   _ElementMapt   copyt   _AttributeMapt   contentt   AttributeUseR+   R,   R7   t   anyURIt   Truet   _CTD_ANON__reft   _DeclarationLocationt   _UseLocationt   propertyt   valuet   sett   reft   booleant   _CTD_ANON__requiredR>   t   Wildcardt   PC_laxt   NC_nott   _AttributeWildcardt   updatet   name(    (    (    sS   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/raw/wsoap.pyR=   “   s*   <6<	t	   CTD_ANON_c           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 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 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, j. d f ƒ Z/ e j0 i  ƒ e j0 i e  e  j1 ƒ  6e( e( j1 ƒ  6e* e* j1 ƒ  6ƒ RS(   u7   Complex type [anonymous] with content type ELEMENT_ONLYuG   /tmp/pyxbdist.WUiBAra/PyXB-1.2.6/pyxb/bundles/wssplat/schemas/wsoap.xsdi,   i   u   elementu,   __httpwww_w3_orgnswsdlsoap_CTD_ANON__elementR>   i/   i   u   mustUnderstandu3   __httpwww_w3_orgnswsdlsoap_CTD_ANON__mustUnderstandi0   u   requiredu-   __httpwww_w3_orgnswsdlsoap_CTD_ANON__requiredi1   R?   R@   u   http://www.w3.org/ns/wsdlN(2   R(   R)   R*   R   RA   R   R   R#   RB   RC   RD   RE   RF   R-   R   R.   R/   R0   RG   RH   RI   RJ   RK   RL   RM   RN   RO   R+   R,   R7   R8   RQ   t   _CTD_ANON___elementRS   RT   RU   RV   RW   R$   RY   t   _CTD_ANON___mustUnderstandt   mustUnderstandt   _CTD_ANON___requiredR>   R[   R\   R]   R^   R_   R`   (    (    (    sS   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/raw/wsoap.pyRa   »   s4   <66<	u   modulet   locationuG   /tmp/pyxbdist.WUiBAra/PyXB-1.2.6/pyxb/bundles/wssplat/schemas/wsoap.xsdi    i   u   headeri+   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   facRW   t   CounterConditionR   R   R.   R/   t   addt   UpdateInstructionRE   R   RN   t
   ElementUseR=   t
   _UseForTagR+   R,   t   _Namespace_wsdlt   StateRQ   t   appendt
   Transitiont   _set_transitionSett	   Automaton(   Rp   t   counterst   cc_0t   statesRk   t   symbolt   st_0t   transitions(    (    sS   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/raw/wsoap.pyRn   ó   s     	3	E!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ÿÿÿÿRg   i    Rh   Ri   uH   /tmp/pyxbdist.WUiBAra/PyXB-1.2.6/pyxb/bundles/wssplat/schemas/wsdl20.xsdi%   i   u   documentationRj   Rk   Rl   Rm   (   t   _BuildAutomaton_Ro   R   Rp   RW   Rq   R   R   R.   R/   Rr   Rs   RE   R   RN   Rt   Ra   Ru   R+   R,   Rv   Rw   RQ   Rx   Ry   Rz   R{   (   Rp   R|   R}   R~   Rk   R   R€   R   (    (    sS   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/raw/wsoap.pyR‚     s     	3	E!(D   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   Objectt   _module_typeBindingst   pyxb.binding.datatypest   pyxb.bundles.wssplat.wsdl20R+   t   NamespaceForURIRQ   R   t   configureCategoriesRG   RH   RI   Rv   R   R"   R   R   R7   t   tokenR#   t   enumeration_mixinR'   t   facetst   CF_enumerationt   _CF_enumerationt   addEnumerationt   anyt   _InitializeFacetMapt   addCategoryObjectt   STD_listR6   t	   STD_unionR:   t
   CF_patternt   _CF_patternR<   RJ   R=   Ra   R$   R,   R/   t   moduleR`   t	   localNamet   headerRn   t
   _AutomatonR‚   (    (    (    sS   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/raw/wsoap.pyt   <module>   sp   !+!		
			
			
	"$	"-	BB		