- Timestamp:
- Oct 9, 2008 2:54:54 PM (16 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master, version-1.30, version-2.00, version-3.01, version-3.02
- Children:
- d199ced
- Parents:
- 0ea11af
- Location:
- fedd
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/fedd.py
r0ea11af r0b466d1 42 42 ThreadingSSLServer.__init__(self, ME, handler, ssl_ctx) 43 43 self.impl = impl 44 self.soap_methods = impl.get_soap_services() 45 self.xmlrpc_methods = impl.get_xmlrpc_services() 44 self.soap_methods = impl.soap_services 45 self.xmlrpc_methods = impl.xmlrpc_services 46 self.log = logging.getLogger("fedd") 46 47 47 48 class fedd_soap_handler(BaseHTTPRequestHandler): … … 113 114 self.send_xml(str(sw)) 114 115 116 def log_request(self, code=0, size=0): 117 """ 118 Log request to the fedd logger 119 """ 120 self.server.log.info("Successful SOAP request code %d" % code) 121 115 122 def soap_dispatch(self, method, req, fid): 116 123 """ … … 181 188 resp = None 182 189 self.send_xml(data) 190 191 def log_request(self, code=0, size=0): 192 """ 193 Log request to the fedd logger 194 """ 195 self.server.log.info("Successful XMLRPC request code %d" % code) 183 196 184 197 -
fedd/fedd_access.py
r0ea11af r0b466d1 500 500 service_error.proxy, 501 501 "Undefined fault from proxy??"); 502 503 def get_soap_services(self):504 return self.soap_services505 506 def get_xmlrpc_services(self):507 return self.xmlrpc_services508 -
fedd/fedd_client.py
r0ea11af r0b466d1 317 317 except Error, e: 318 318 resp = { 'FeddFaultBody': \ 319 { 'errstr' : e.faultCode, 'desc' : e.faultString } } 319 { 'errstr' : getattr(e, "faultCode", "No fault code"), 320 'desc' : getattr(e, "faultString", "No fault string") }\ 321 } 320 322 if resp: 321 323 if resp.has_key(self.ResponseBody): … … 566 568 {'desc': e.desc, 'errstr': e.errstr, 'code': e.code}) 567 569 except RuntimeError, e: 568 sys.exit("Error processing RPC: %s" % e .message)570 sys.exit("Error processing RPC: %s" % e) 569 571 570 572 if opts.debug > 1: print >>sys.stderr, resp_dict -
fedd/fedd_deter_impl.py
r0ea11af r0b466d1 38 38 self.xmlrpc_services.update(self.experiment.xmlrpc_services) 39 39 40 def get_soap_services(self):41 return self.soap_services42 43 def get_xmlrpc_services(self):44 return self.xmlrpc_services45 46 40 def new_feddservice(configfile): 47 41 return fedd_deter_impl(configfile) -
fedd/fedd_experiment_control.py
r0ea11af r0b466d1 299 299 "TerminateResponseBody"), 300 300 } 301 302 def get_soap_services(self):303 return self.soap_services304 305 def get_xmlrpc_services(self):306 return self.xmlrpc_services307 301 308 302 def copy_file(self, src, dest, size=1024):
Note: See TracChangeset
for help on using the changeset viewer.