ó
þ£Sc           @   sb   d  Z  d Z d d l m Z d d l Z d d l Td d l m Z d d	 d „  ƒ  YZ e ƒ  Z d S(
   sÌ  
################################################################################
# Copyright (c) 2003, Pfizer
# Copyright (c) 2001, Cayce Ullman.
# Copyright (c) 2001, Brian Matthews.
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
#
# Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# Neither the name of actzero, inc. nor the names of its contributors may
# be used to endorse or promote products derived from this software without
# specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR
# ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
################################################################################
s2   $Id: Config.py 1298 2006-11-07 00:54:15Z sanxiyn $iÿÿÿÿ(   t   __version__N(   t   *(   t   NSt
   SOAPConfigc           B   s6   e  Z d Z d d	 d „  ƒ  YZ d
 d „ Z d „  Z RS(   t	   SSLservert	   SSLclientt	   GSIservert	   GSIclientt	   SSLconfigc           B   s   e  Z d Z d Z d Z RS(   t   key_filet	   cert_file(   s   key_files	   cert_fileN(   t   __name__t
   __module__t	   __slots__t   NoneR	   R
   (    (    (    s1   /usr/lib/python2.7/dist-packages/SOAPpy/Config.pyR   3   s   c         K   sX  |  j  } | rp t | t ƒ s* t d ‚ n  | j  } x•| j ƒ  D]) \ } } | d d k r@ | | | <q@ q@ Wn[d |  _ d |  _ d |  _ d |  _ d |  _	 d |  _
 t |  _ d |  _ d |  _ d |  _ d |  _ d |  _ d |  _ d  |  _ t ƒ  |  _ y( d d l m } d | d	 <d | d
 <Wn d | d	 <d | d
 <n Xy d d l m } d | d <Wn d | d <n Xy d d l m }	 d | d <Wn d | d <n X| d s¸| d rË|  j ƒ  | d <n  | j d d  ƒ }
 |
 rt |
 t ƒ st d ƒ ‚ n  |
 |  j |  _ n  x= | j ƒ  D]/ \ } } | d d k r!t  |  | | ƒ q!q!Wd  S(   Ns'   initializer must be SOAPConfig instancei    t   _i   t   1999t   asciiiÿÿÿÿ(   t   ioR   R   (   t   SSLR   (   t   sslR   R   t   dumpmaps(   Config dumpmap parameter must be a tuple(!   t   __dict__t
   isinstanceR   t   AttributeErrort   itemst   debugt   dumpFaultInfot   namespaceStylet   strictNamespacest   typedt   buildWithNamespacePrefixt   Falset   buildWithGlobalNamespacePrefixt   returnAllAttrst   strict_ranget   dict_encodingt   specialArgst   unwrap_resultst   simplify_objectsR   t
   authMethodt   tupleR   t   pyGlobusR   t   M2CryptoR   t   socketR   R   t   popt	   TypeErrort   setattr(   t   selft   configt   kwt   dt   st   kt   vR   R   R   R   (    (    s1   /usr/lib/python2.7/dist-packages/SOAPpy/Config.pyt   __init__8   sf    																	

c         C   s\  | |  j  k r t d ‚ n  |  j } | d k rv| d d k rT | d  d } } n | d	 } } t | ƒ t k rÏ t j j | ƒ r› | t j | f } q$t j j | ƒ rÃ t j | | f } q$t d
 ‚ nU t | ƒ t	 t
 f k r| r| d | d	 f } q$| d	 | d f } n	 t d ‚ | \ | | <| | d <y# t j | d | d f | d <WqXd | d <qXXnâ | d k rt | ƒ } t j j | ƒ s¬t d ‚ n  | | | <t j | d	 } | d <t j | | d <t j | d } | d <t j | | d <nK | d k rN| | | <| d <| d <| d <| d <| d <n
 | | | <d  S(   Ns   readonly configuration settingt   typesNamespacet   typesNamespaceURIt   schemaNamespacet   schemaNamespaceURIiýÿÿÿt   URIi   i    s   unknown namespaces   unknown namespace typeR   t    s   unknown namespace styleR   t   returnFaultInfot   dumpHeadersInt   dumpHeadersOutt
   dumpSOAPInt   dumpSOAPOut(   R8   R9   R:   R;   (   t   _SOAPConfig__readonlyR   R   t   typet
   StringTypeR   t   NSMAPt   has_keyt   NSMAP_Rt   ListTypet	   TupleTypet   STMAP_Rt   strt   STMAP(   R0   t   namet   valueR3   t   baset   urit   n(    (    s1   /usr/lib/python2.7/dist-packages/SOAPpy/Config.pyt   __setattr__¤   sH    			#
5(   s	   SSLservers	   SSLclients	   GSIservers	   GSIclient(    N(   R   R   RC   R   R   R7   RS   (    (    (    s1   /usr/lib/python2.7/dist-packages/SOAPpy/Config.pyR   1   s   l(    (	   t   __doc__t   identt   versionR    R,   t   typesR   R   t   Config(    (    (    s1   /usr/lib/python2.7/dist-packages/SOAPpy/Config.pyt   <module>"   s   
°