ó
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 e j j d d e ƒZ e j d d g ƒ d d d	 „ Z d d
 „ Z d e j j j  f d „  ƒ  YZ! e! j" ƒ  e j# d d e! ƒ e! e _! d e j j j$ f d „  ƒ  YZ% e% e _% e j j j& e j j' e d ƒ e% d e j
 j j( d d d ƒ ƒZ) e j# d e) j* ƒ  j+ ƒ  e) ƒ d S(   iÿÿÿÿ(   t   unicode_literalsNu-   urn:uuid:616f95f4-9099-11e7-b77e-3497f68b2e96u   1.2.6u   http://www.w3.org/ns/sawsdlt   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(    (    sT   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/raw/sawsdl.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   (    (    sT   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/raw/sawsdl.pyR   E   s    t   listOfAnyURIc           B  sS   e  Z d  Z e j j e 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.anyURI.u   listOfAnyURIuH   /tmp/pyxbdist.WUiBAra/PyXB-1.2.6/pyxb/bundles/wssplat/schemas/sawsdl.xsdi   i   N(   t   __name__t
   __module__t   __doc__R   t	   namespacet   ExpandedNameR   t   _ExpandedNameR   t   utilityt   Locationt   _XSDLocationR   t   _DocumentationR   t	   datatypest   anyURIt	   _ItemType(    (    (    sT   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/raw/sawsdl.pyR'   Q   s
   u   listOfAnyURIt   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 i  Z i  Z e j j j d e j j j j d e j j j j ƒ Z e j i  ƒ e j i  ƒ RS(   u   This element is for use in WSDL 1.1 only. It does not apply to WSDL 2.0 documents.  Use in
        WSDL 2.0 documents is invalid.uH   /tmp/pyxbdist.WUiBAra/PyXB-1.2.6/pyxb/bundles/wssplat/schemas/sawsdl.xsdi   i   t   process_contentst   namespace_constraintN(   R(   R)   R*   R   t   _TypeDefinitionR   R   R#   t   complexTypeDefinitiont	   _CT_EMPTYt   _ContentTypeTagt   Falset	   _AbstractR-   R   R.   R/   R0   t   _ElementMapt   _AttributeMapt   contentt   Wildcardt   PC_laxt   NC_anyt   _AttributeWildcardt   update(    (    (    sT   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/raw/sawsdl.pyR5   _   s   6u   attrExtensionst   locationuH   /tmp/pyxbdist.WUiBAra/PyXB-1.2.6/pyxb/bundles/wssplat/schemas/sawsdl.xsdi   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   Objectt   _module_typeBindingst   pyxb.binding.datatypesR+   t   NamespaceForURIt   TrueR   t   configureCategoriesR   R"   R   R   R#   t   STD_listR'   t   _InitializeFacetMapt   addCategoryObjectR9   R5   R$   R,   R/   t   attrExtensionst   namet	   localName(    (    (    sT   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/raw/sawsdl.pyt   <module>   s4   !	
		B