ó
—ã=Pc           @   sü   d  Z  d d l Z d d l Z d Z d Z d e f d „  ƒ  YZ d e f d „  ƒ  YZ d	 e f d
 „  ƒ  YZ d e f d „  ƒ  YZ	 d e f d „  ƒ  YZ
 d e f d „  ƒ  YZ d e f d „  ƒ  YZ d d d „  ƒ  YZ d d „ Z d „  Z d d l Z d S(   s—   
Suds is a lightweight SOAP python client that provides a service proxy 
for Web Services.
@var properties: Library properties.
@type properties: dict
iÿÿÿÿNs   0.3.7s   GA R580-20091016t   MethodNotFoundc           B   s   e  Z d  „  Z RS(   c         C   s   t  j |  d | ƒ d  S(   Ns   Method not found: '%s'(   t	   Exceptiont   __init__(   t   selft   name(    (    s%   suds-0.3.7-py2.6.egg/suds/__init__.pyR   '   s    (   t   __name__t
   __module__R   (    (    (    s%   suds-0.3.7-py2.6.egg/suds/__init__.pyR    &   s   t   PortNotFoundc           B   s   e  Z d  „  Z RS(   c         C   s   t  j |  d | ƒ d  S(   Ns   Port not found: '%s'(   R   R   (   R   R   (    (    s%   suds-0.3.7-py2.6.egg/suds/__init__.pyR   +   s    (   R   R   R   (    (    (    s%   suds-0.3.7-py2.6.egg/suds/__init__.pyR   *   s   t   ServiceNotFoundc           B   s   e  Z d  „  Z RS(   c         C   s   t  j |  d | ƒ d  S(   Ns   Service not found: '%s'(   R   R   (   R   R   (    (    s%   suds-0.3.7-py2.6.egg/suds/__init__.pyR   /   s    (   R   R   R   (    (    (    s%   suds-0.3.7-py2.6.egg/suds/__init__.pyR   .   s   t   TypeNotFoundc           B   s   e  Z d  „  Z RS(   c         C   s   t  j |  d t | ƒ ƒ d  S(   Ns   Type not found: '%s'(   R   R   t   tostr(   R   R   (    (    s%   suds-0.3.7-py2.6.egg/suds/__init__.pyR   3   s    (   R   R   R   (    (    (    s%   suds-0.3.7-py2.6.egg/suds/__init__.pyR	   2   s   t
   BuildErrorc           B   s   e  Z d  Z d „  Z RS(   s4  
        An error occured while building a instance of (%s).  As a result
        the object you requested could not be constructed.  It is recommended
        that you construct the type manually using a Suds object.
        Please open a ticket with a description of this error.
        Reason: %s
        c         C   s!   t  j |  t j | | f ƒ d  S(   N(   R   R   R   t   msg(   R   R   t	   exception(    (    s%   suds-0.3.7-py2.6.egg/suds/__init__.pyR   ?   s    (   R   R   R   R   (    (    (    s%   suds-0.3.7-py2.6.egg/suds/__init__.pyR   6   s   t   SoapHeadersNotPermittedc           B   s   e  Z d  Z d „  Z RS(   sµ   
        Method (%s) was invoked with SOAP headers.  The WSDL does not
        define SOAP headers for this method.  Retry without the soapheaders
        keyword argument.
        c         C   s   t  j |  |  j | ƒ d  S(   N(   R   R   R   (   R   R   (    (    s%   suds-0.3.7-py2.6.egg/suds/__init__.pyR   I   s    (   R   R   R   R   (    (    (    s%   suds-0.3.7-py2.6.egg/suds/__init__.pyR   B   s   t   WebFaultc           B   s   e  Z d  „  Z RS(   c         C   s?   t  | d ƒ r) t j |  d | j ƒ n  | |  _ | |  _ d  S(   Nt   faultstrings   Server raised fault: '%s'(   t   hasattrR   R   R   t   faultt   document(   R   R   R   (    (    s%   suds-0.3.7-py2.6.egg/suds/__init__.pyR   M   s    	(   R   R   R   (    (    (    s%   suds-0.3.7-py2.6.egg/suds/__init__.pyR   L   s   t   Reprc           B   s   e  Z d  „  Z d „  Z RS(   c         C   s   | |  _  d  S(   N(   t   x(   R   R   (    (    s%   suds-0.3.7-py2.6.egg/suds/__init__.pyR   X   s    c         C   s   t  |  j ƒ S(   N(   t   reprR   (   R   (    (    s%   suds-0.3.7-py2.6.egg/suds/__init__.pyt   __str__Z   s    (   R   R   R   R   (    (    (    s%   suds-0.3.7-py2.6.egg/suds/__init__.pyR   W   s   	c         C   s5  t  |  t ƒ r/ | d k r |  S|  j | ƒ Sn  t  |  t ƒ r± d g } xM |  D]E } t  | t ƒ rs | j | ƒ n | j t | ƒ ƒ | j d ƒ qN W| j d ƒ d j | ƒ St  |  t ƒ r3d g } xM |  D]E } t  | t ƒ rõ | j | ƒ n | j t | ƒ ƒ | j d ƒ qÐ W| j d ƒ d j | ƒ St  |  t	 ƒ rd g } xª |  j
 ƒ  D]œ } t  | d t ƒ r…| j | d ƒ n | j t | d ƒ ƒ | j d	 ƒ t  | d
 t ƒ rÐ| j | d
 ƒ n | j t | d
 ƒ ƒ | j d ƒ qXW| j d ƒ d j | ƒ Sy t |  ƒ SWn t |  ƒ SXd S(   s7    get a unicode safe string representation of an object t   (s   , t   )t    t   [t   ]t   {i    s    = i   t   }N(   t
   isinstancet
   basestringt   Nonet   encodet   tuplet   appendR
   t   joint   listt   dictt   itemst   unicodet   str(   t   objectt   encodingt   st   item(    (    s%   suds-0.3.7-py2.6.egg/suds/__init__.pyR
   a   sN    			c         C   s   |  j  j d t t |  ƒ ƒ S(   Nt   :(   t	   __class__R   t   hext   id(   t   obj(    (    s%   suds-0.3.7-py2.6.egg/suds/__init__.pyt   objid   s    (    (   t   __doc__t   ost   syst   __version__t	   __build__R   R    R   R   R	   R   R   R   R   R!   R
   R4   t   client(    (    (    s%   suds-0.3.7-py2.6.egg/suds/__init__.pyt   <module>   s   

/	