ó
f#ņ]c           @  sU  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! e _! e j" d d e!  d S(   iĸĸĸĸ(   t   unicode_literalsNu-   urn:uuid:6244a514-9099-11e7-b77e-3497f68b2e96u   1.2.6u2   urn:oasis:names:tc:SAML:2.0:profiles:attribute:DCEt   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(    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/saml20/raw/dce.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   (    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/saml20/raw/dce.pyR   E   s    t   DCEValueTypec           B  sŋ  e  Z d  Z e j j j Z e j j j	 j
 Z e Z e j j e d  Z e j j j d d d  Z i  Z i  Z e j j j e j j e 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 e 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% i   e j% i e e j&   6e# e# j&   6 RS(   uf   Complex type {urn:oasis:names:tc:SAML:2.0:profiles:attribute:DCE}DCEValueType with content type SIMPLEu   DCEValueTypeuD   /tmp/pyxbdist.WUiBAra/PyXB-1.2.6/pyxb/bundles/saml20/schemas/dce.xsdi   i   u   Realmui   __urnoasisnamestcSAML2_0profilesattributeDCE_DCEValueType_urnoasisnamestcSAML2_0profilesattributeDCERealmi   i   i   u   FriendlyNameup   __urnoasisnamestcSAML2_0profilesattributeDCE_DCEValueType_urnoasisnamestcSAML2_0profilesattributeDCEFriendlyNamei   i   N('   t   __name__t
   __module__t   __doc__R   R   t	   datatypest   anyURIt   _TypeDefinitionR#   t   complexTypeDefinitiont
   _CT_SIMPLEt   _ContentTypeTagt   Falset	   _Abstractt	   namespacet   ExpandedNameR   t   _ExpandedNameR   t   utilityt   Locationt   _XSDLocationt   _ElementMapt   _AttributeMapt   contentt   AttributeUset   _DCEValueType__Realmt   _DeclarationLocationt   _UseLocationt   propertyt   valuet   setR   t   Realmt   stringt   _DCEValueType__FriendlyNamet   FriendlyNamet   updatet   name(    (    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/saml20/raw/dce.pyR'   P   s(   66	u   DCEValueType(#   t
   __future__R    R   t   pyxb.bindingt   pyxb.binding.saxerR   t   pyxb.utils.utilityt   pyxb.utils.domutilst   syst   pyxb.utils.sixR   t   sixR   R6   t   UniqueIdentifiert   _GenerationUIDt   _PyXBVersiont   __version__t   PyXBVersionErrort   Objectt   _module_typeBindingst   pyxb.binding.datatypesR3   t   NamespaceForURIt   TrueR   t   configureCategoriesR   R"   R   R   R#   R.   R'   t   addCategoryObject(    (    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/saml20/raw/dce.pyt   <module>   s*   !!	