Changeset 3281

Show
Ignore:
Timestamp:
12/15/09 11:26:06 (10 years ago)
Author:
jsamuel
Message:

Have the seattlegeni xmlrpc client constructor accept None to indicate default values.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • seattle/trunk/seattlegeni/xmlrpc_clients/seattlegeni_xmlrpc.py

    r3226 r3281  
    8080   
    8181  def __init__(self, username, api_key=None, private_key_string=None, 
    82                xmlrpc_url=DEFAULT_XMLRPC_URL, 
    83                allow_ssl_insecure=False, 
    84                ca_certs_file=DEFAULT_CA_CERTIFICATES_FILE): 
     82               xmlrpc_url=None, 
     83               allow_ssl_insecure=None, 
     84               ca_certs_file=None): 
     85     
     86    if xmlrpc_url is None: 
     87      xmlrpc_url = DEFAULT_XMLRPC_URL 
     88       
     89    if allow_ssl_insecure is None: 
     90      allow_ssl_insecure = False 
     91       
     92    if ca_certs_file is None: 
     93      ca_certs_file = DEFAULT_CA_CERTIFICATES_FILE 
    8594     
    8695    if not isinstance(username, basestring):