ó
BůLc           @   ss   d  Z  d d l Td d l m Z d d l m Z d d l m Z d e f d     YZ d   Z	 e j
 d	 e	  d
 S(   s_   
The I{soaparray} module provides XSD extensions for handling
soap (section 5) encoded arrays.
i˙˙˙˙(   t   *(   t	   getLogger(   t   Factory(   t	   AttributeR   c           B   s)   e  Z d  Z d   Z d   Z d   Z RS(   sž   
    Represents an XSD <attribute/> that handles special
    attributes that are extensions for WSDLs.
    @ivar aty: Array type information.
    @type aty: The value of wsdl:arrayType.
    c         C   s?   t  j |  | |  | j d  r2 | d  |  _ n	 | |  _ d S(   se   
        @param aty: Array type information.
        @type aty: The value of wsdl:arrayType.
        s   []iţ˙˙˙N(   t   SXAttributet   __init__t   endswitht   aty(   t   selft   schemat   rootR   (    (    sH   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/suds/soaparray.pyR   $   s    c         C   s    t  j |   } | j d  | S(   NR   (   R   t   autoqualifiedt   append(   R   t   aqs(    (    sH   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/suds/soaparray.pyR   /   s    c         C   s   t  j |   } | d } | S(   NR   (   s   aty(   R   t   description(   R   t   d(    (    sH   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/suds/soaparray.pyR   4   s    
(   t   __name__t
   __module__t   __doc__R   R   R   (    (    (    sH   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/suds/soaparray.pyR      s   		c         C   sH   d } | j d d | } | d  k r4 t |  |  St |  | |  Sd  S(   Ns    http://schemas.xmlsoap.org/wsdl/t	   arrayTypet   ns(   Ns    http://schemas.xmlsoap.org/wsdl/(   t   Nonet   getR   R   (   t   xt   yR   R   (    (    sH   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/suds/soaparray.pyt   __fn=   s
    t	   attributeN(   R   t   sudst   loggingR   t   suds.xsd.sxbasicR   t	   SXFactoryR   R   R   t   maptag(    (    (    sH   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/suds/soaparray.pyt   <module>   s   
!	