Changeset 3353

Show
Ignore:
Timestamp:
01/11/10 14:15:39 (10 years ago)
Author:
cemeyer
Message:

#801: xmlrpc_client: Update to new httpretrieve interface.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • seattle/trunk/seattlelib/xmlrpc_client.repy

    r3307 r3353  
    103103 
    104104    response = httpretrieve_get_string("http://%s:%s%s" % (self.server_host, \ 
    105         self.server_port, self.server_path), http_post=request_xml, \ 
    106         header_timeout=timeout, content_timeout=timeout, http_header={\ 
     105        self.server_port, self.server_path), postdata=request_xml, \ 
     106        timeout=timeout, httpheaders={\ 
    107107        "User-Agent": self.USER_AGENT, "Content-Type": "text/xml"}) 
    108108 
    109109    # Timeout if the POST took too long. 
    110     if getruntime() - starttime > timeout: 
     110    if timeout is not None and getruntime() - starttime > timeout: 
    111111      raise xmlrpc_common_Timeout() 
    112112