ó
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  e j j! j" f d „  ƒ  YZ# e j j$ j% d e# d d ƒ e# _& e# j& j' d e j j( e d ƒ d d ƒ e# j) e# j& ƒ e j* d d e# ƒ e# e _# d e j j! j+ f d „  ƒ  YZ, e, e _, e j* d d e, ƒ d e j j! j+ f d „  ƒ  YZ- e- e _- e j* d d e- ƒ d e j j! j+ f d „  ƒ  YZ. e. e _. e j* d d e. ƒ e j j! j/ e j j( e d ƒ e. d d d e j
 j j0 d  d! d" ƒ ƒZ1 e j* d e1 j2 ƒ  j3 ƒ  e1 ƒ e j j! j/ e j j( e d# ƒ e, d d$ d e j
 j j0 d  d% d" ƒ ƒZ4 e j* d e4 j2 ƒ  j3 ƒ  e4 ƒ e j j! j/ e j j( e d& ƒ e, d d' d e j
 j j0 d  d( d" ƒ ƒZ5 e j* d e5 j2 ƒ  j3 ƒ  e5 ƒ e. j6 e j j! j/ e j j( e d# ƒ e, d) e. d d$ d e j
 j j0 d  d% d" ƒ ƒƒ e. j6 e j j! j/ e j j( e d& ƒ e, d) e. d d' d e j
 j j0 d  d( d" ƒ ƒƒ d* „  a7 t7 ƒ  e. _8 d S(+   iÿÿÿÿ(   t   unicode_literalsNu-   urn:uuid:5fc2f3e0-9099-11e7-b77e-3497f68b2e96u   1.2.6uR   http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsdt   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(    (    sQ   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/raw/wsu.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   (    (    sQ   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/raw/wsu.pyR   E   s    t   tTimestampFaultc           B  sD   e  Z d  Z e j j e d ƒ Z e j j	 j
 d d d ƒ Z d  Z RS(   uT   
This type defines the fault code value for Timestamp message expiration.
          u   tTimestampFaultuE   /tmp/pyxbdist.WUiBAra/PyXB-1.2.6/pyxb/bundles/wssplat/schemas/wsu.xsdi   i   (   t   __name__t
   __module__t   __doc__R   t	   namespacet   ExpandedNameR   t   _ExpandedNameR   t   utilityt   Locationt   _XSDLocationt   _Documentation(    (    (    sQ   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/raw/wsu.pyR'   P   s   t   value_datatypet   enum_prefixt   valueu   MessageExpiredt   tagu   tTimestampFaultt   AttributedDateTimec           B  sa  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# d e j j j# j$ d e j j j# j% d f ƒ Z& e j' i  ƒ e j' i e e j( ƒ  6ƒ RS(   uk   
This type is for elements whose [children] is a psuedo-dateTime and can have arbitrary attributes. 
      u   AttributedDateTimeuE   /tmp/pyxbdist.WUiBAra/PyXB-1.2.6/pyxb/bundles/wssplat/schemas/wsu.xsdi-   i   u   Idu®   __httpdocs_oasis_open_orgwss200401oasis_200401_wss_wssecurity_utility_1_0_xsd_AttributedDateTime_httpdocs_oasis_open_orgwss200401oasis_200401_wss_wssecurity_utility_1_0_xsdIdi   i)   i   uT   
This global attribute supports annotating arbitrary elements with an ID.
          t   process_contentst   namespace_constraintuR   http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsdN()   R(   R)   R*   R   R   t	   datatypest   stringt   _TypeDefinitionR#   t   complexTypeDefinitiont
   _CT_SIMPLEt   _ContentTypeTagt   Falset	   _AbstractR+   R,   R   R-   R   R.   R/   R0   t   _ElementMapt   _AttributeMapt   contentt   AttributeUset   IDt   _AttributedDateTime__Idt   _DeclarationLocationt   _UseLocationt   propertyR4   t   setR   t   Idt   Wildcardt   PC_laxt   NC_nott   _AttributeWildcardt   updatet   name(    (    (    sQ   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/raw/wsu.pyR6   `   s    6<	u   AttributedDateTimet   AttributedURIc           B  sa  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# d e j j j# j$ d e j j j# j% d f ƒ Z& e j' i  ƒ e j' i e e j( ƒ  6ƒ RS(   ub   
This type is for elements whose [children] is an anyURI and can have arbitrary attributes.
      u   AttributedURIuE   /tmp/pyxbdist.WUiBAra/PyXB-1.2.6/pyxb/bundles/wssplat/schemas/wsu.xsdi9   i   u   Idu©   __httpdocs_oasis_open_orgwss200401oasis_200401_wss_wssecurity_utility_1_0_xsd_AttributedURI_httpdocs_oasis_open_orgwss200401oasis_200401_wss_wssecurity_utility_1_0_xsdIdi   i)   i   uT   
This global attribute supports annotating arbitrary elements with an ID.
          R7   R8   uR   http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsdN()   R(   R)   R*   R   R   R9   t   anyURIR;   R#   R<   R=   R>   R?   R@   R+   R,   R   R-   R   R.   R/   R0   RA   RB   RC   RD   RE   t   _AttributedURI__IdRG   RH   RI   R4   RJ   R   RK   RL   RM   RN   RO   RP   RQ   (    (    (    sQ   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/raw/wsu.pyRR   €   s    6<	u   AttributedURIt   TimestampTypec        	   B  s8  e  Z d  Z d 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 e j j j d d d ƒ ƒ Z e e j e j d d ƒ Z e j j j e j j e d	 ƒ d	 d
 e e j j j d d d ƒ ƒ Z 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 j j' d e j j j' j( d e j j j' j) d f ƒ Z* e+ Z, e j- i e e j. ƒ  6e e j. ƒ  6ƒ e j- i e# e# j. ƒ  6ƒ RS(   uc   
This complex type ties together the timestamp related elements into a composite type.
            u   TimestampTypeuE   /tmp/pyxbdist.WUiBAra/PyXB-1.2.6/pyxb/bundles/wssplat/schemas/wsu.xsdiF   i   u   Expiresu®   __httpdocs_oasis_open_orgwss200401oasis_200401_wss_wssecurity_utility_1_0_xsd_TimestampType_httpdocs_oasis_open_orgwss200401oasis_200401_wss_wssecurity_utility_1_0_xsdExpiresi^   uj   
This element allows an expiration time to be applied anywhere element wildcards are present.
            u   Createdu®   __httpdocs_oasis_open_orgwss200401oasis_200401_wss_wssecurity_utility_1_0_xsd_TimestampType_httpdocs_oasis_open_orgwss200401oasis_200401_wss_wssecurity_utility_1_0_xsdCreatedie   ug   
This element allows a creation time to be applied anywhere element wildcards are present.
            u   Idu©   __httpdocs_oasis_open_orgwss200401oasis_200401_wss_wssecurity_utility_1_0_xsd_TimestampType_httpdocs_oasis_open_orgwss200401oasis_200401_wss_wssecurity_utility_1_0_xsdIdi   i)   i   uT   
This global attribute supports annotating arbitrary elements with an ID.
          R7   R8   uR   http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsdN(/   R(   R)   R*   R   R;   R   R   R#   R<   t   _CT_ELEMENT_ONLYR>   R?   R@   R+   R,   R   R-   R   R.   R/   R0   RA   RB   RC   t   ElementDeclarationt   _TimestampType__ExpiresRI   R4   RJ   t   Expirest   _TimestampType__Createdt   CreatedRD   R9   RE   t   _TimestampType__IdRG   RH   RK   RL   RM   RN   RO   t   Truet   _HasWildcardElementRP   RQ   (    (    (    sQ   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/raw/wsu.pyRU       s.   EE6<		u   TimestampTypeu	   Timestampt   documentationu~   
This element allows Timestamps to be applied anywhere element wildcards are present,
including as a SOAP header.
            t   locationuE   /tmp/pyxbdist.WUiBAra/PyXB-1.2.6/pyxb/bundles/wssplat/schemas/wsu.xsdiU   i   u   Expiresuj   
This element allows an expiration time to be applied anywhere element wildcards are present.
            i^   u   Createdug   
This element allows a creation time to be applied anywhere element wildcards are present.
            ie   t   scopec       
   C  s  b  d d  l j j }  t ƒ  } |  j d d d d d t j j j d d d	 ƒ ƒ } | j	 | ƒ |  j d d d d d t j j j d d
 d	 ƒ ƒ } | j	 | ƒ |  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 | ƒ 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 |	 ƒ t ƒ  } | j	 |  j | t ƒ ƒ t j j j t j j j d t j j j j d t j j j j d f ƒ t j j j d d d ƒ ƒ } |  j | d t d | d t ƒ}
 | j |
 ƒ g  } | j |  j | |  j | t ƒ g ƒ ƒ | j |  j |	 |  j | t ƒ g ƒ ƒ | j |  j |
 |  j | t ƒ g ƒ ƒ | j | ƒ g  } | j |  j |	 |  j | t ƒ g ƒ ƒ | j |  j |
 |  j | t ƒ g ƒ ƒ |	 j | ƒ g  } | j |  j |
 |  j | t ƒ g ƒ ƒ |
 j | ƒ |  j | | t d d  ƒS(   Niÿÿÿÿt   mini    t   maxi   t   metadatauE   /tmp/pyxbdist.WUiBAra/PyXB-1.2.6/pyxb/bundles/wssplat/schemas/wsu.xsdiM   i   iN   iO   u   Createdt
   is_initialt   final_updatet   is_unordered_catenationu   ExpiresR7   R8   uR   http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsdiP   i   t   containing_state(   t   _BuildAutomatont   pyxb.utils.facR   t   facRJ   t   CounterConditionR   R.   R/   t   addR   t   UpdateInstructionR?   R   RC   t
   ElementUseRU   t
   _UseForTagR+   R,   R   t   StateR]   t   appendt   WildcardUseRL   RM   RN   t
   Transitiont   _set_transitionSett	   Automaton(   Rk   t   counterst   cc_0t   cc_1t   cc_2t   statesRf   t   symbolt   st_0t   st_1t   st_2t   transitions(    (    sQ   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/raw/wsu.pyRi   Þ   sX    	333	E!	E!	c!(9   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   NamespaceForURIR]   R   t   configureCategoriesR   R"   R   R   R9   t   QNameR#   t   enumeration_mixinR'   t   facetst   CF_enumerationt   _CF_enumerationt   addEnumerationR,   t   _InitializeFacetMapt   addCategoryObjectR<   R6   RR   RU   R$   R/   t	   TimestampRQ   t	   localNameRY   R[   t   _AddElementRi   t
   _Automaton(    (    (    sQ   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/raw/wsu.pyt   <module>   sV   !+	!(			+	HHHUU	0