Ņō
ã=Pc           @   sA   d  Z  d d k Td d k Td d k l Z d d d     YZ d S(   s+   
Provides filtered attribute list classes.
i˙˙˙˙(   t   *(   t	   Namespacet   AttrListc           B   s;   e  Z d  Z d   Z d   Z d   Z d   Z d   Z RS(   sÂ   
    A filtered attribute list.
    Items are included during iteration if they are in either the (xs) or
    (xml) namespaces.
    @ivar raw: The I{raw} attribute list.
    @type raw: list
    c         C   s   | |  _  d S(   sX   
        @param attributes: A list of attributes
        @type attributes: list
        N(   t   raw(   t   selft
   attributes(    (    sP   /usr/local/lib/python2.6/dist-packages/suds-0.3.7-py2.6.egg/suds/umx/attrlist.pyt   __init__"   s    c         c   s4   x- |  i  D]" } |  i |  o q
 n | Vq
 Wd S(   sĄ   
        Get list of I{real} attributes which exclude xs and xml attributes.
        @return: A list of I{real} attributes.
        @rtype: I{generator}
        N(   R   t   skip(   R   t   a(    (    sP   /usr/local/lib/python2.6/dist-packages/suds-0.3.7-py2.6.egg/suds/umx/attrlist.pyt   real)   s
    
  c         C   s+   d } x |  i    D] } | d 7} q W| S(   sŖ   
        Get the number of I{real} attributes which exclude xs and xml attributes.
        @return: A count of I{real} attributes. 
        @rtype: L{int}
        i    i   (   R	   (   R   t   nR   (    (    sP   /usr/local/lib/python2.6/dist-packages/suds-0.3.7-py2.6.egg/suds/umx/attrlist.pyt   rlen3   s
     c         C   s4   x- |  i  D]" } | i   d j o | i Sd SWd S(   s   
        Get list of I{filtered} attributes which exclude xs.
        @return: A list of I{filtered} attributes.
        @rtype: I{generator}
        s   xml:langN(   R   t   qnamet   valuet   None(   R   R   (    (    sP   /usr/local/lib/python2.6/dist-packages/suds-0.3.7-py2.6.egg/suds/umx/attrlist.pyt   lang>   s
    
 c         C   sC   | i    } t i d d d d f } t i |  p | d | j S(   sĐ   
        Get whether to skip (filter-out) the specified attribute.
        @param attr: An attribute.
        @type attr: I{Attribute}
        @return: True if should be skipped.
        @rtype: bool
        i   s)   http://schemas.xmlsoap.org/soap/encoding/s)   http://schemas.xmlsoap.org/soap/envelope/s'   http://www.w3.org/2003/05/soap-envelope(   t	   namespaceR   t   xmlnst   xs(   R   t   attrt   nsR   (    (    sP   /usr/local/lib/python2.6/dist-packages/suds-0.3.7-py2.6.egg/suds/umx/attrlist.pyR   I   s    
	(   t   __name__t
   __module__t   __doc__R   R	   R   R   R   (    (    (    sP   /usr/local/lib/python2.6/dist-packages/suds-0.3.7-py2.6.egg/suds/umx/attrlist.pyR      s   		
		N(    (   R   t   sudst   suds.umxt   suds.saxR   R   (    (    (    sP   /usr/local/lib/python2.6/dist-packages/suds-0.3.7-py2.6.egg/suds/umx/attrlist.pyt   <module>   s   

