Package suds :: Package transport :: Module options
[hide private]
[frames] | no frames]

Source Code for Module suds.transport.options

 1  # This program is free software; you can redistribute it and/or modify 
 2  # it under the terms of the (LGPL) GNU Lesser General Public License as 
 3  # published by the Free Software Foundation; either version 3 of the  
 4  # License, or (at your option) any later version. 
 5  # 
 6  # This program is distributed in the hope that it will be useful, 
 7  # but WITHOUT ANY WARRANTY; without even the implied warranty of 
 8  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
 9  # GNU Library Lesser General Public License for more details at 
10  # ( http://www.gnu.org/licenses/lgpl.html ). 
11  # 
12  # You should have received a copy of the GNU Lesser General Public License 
13  # along with this program; if not, write to the Free Software 
14  # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 
15  # written by: Jeff Ortel ( jortel@redhat.com ) 
16   
17  """ 
18  Contains classes for transport options. 
19  """ 
20   
21   
22  from suds.transport import * 
23  from suds.properties import * 
24   
25      
26 -class Options(Skin):
27 """ 28 Options: 29 - B{proxy} - An http proxy to be specified on requests. 30 The proxy is defined as {protocol:proxy,} 31 - type: I{dict} 32 - default: {} 33 - B{timeout} - Set the url open timeout (seconds). 34 - type: I{float} 35 - default: 90 36 - B{headers} - Extra HTTP headers. 37 - type: I{dict} 38 - I{str} B{http} - The I{http} protocol proxy URL. 39 - I{str} B{https} - The I{https} protocol proxy URL. 40 - default: {} 41 - B{username} - The username used for http authentication. 42 - type: I{str} 43 - default: None 44 - B{password} - The password used for http authentication. 45 - type: I{str} 46 - default: None 47 """
48 - def __init__(self, **kwargs):
49 domain = __name__ 50 definitions = [ 51 Definition('proxy', dict, {}), 52 Definition('timeout', (int,float), 90), 53 Definition('headers', dict, {}), 54 Definition('username', basestring, None), 55 Definition('password', basestring, None), 56 ] 57 Skin.__init__(self, domain, definitions, kwargs)
58