Changeset 9d3e646
- Timestamp:
- Dec 3, 2008 9:41:58 AM (16 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master, version-1.30, version-2.00, version-3.01, version-3.02
- Children:
- 375ca67
- Parents:
- 46a0f7a
- Location:
- fedd
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/fedd_types.xsd
r46a0f7a r9d3e646 638 638 <xsd:enumeration value="6"/> <!-- partial instantiation --> 639 639 <xsd:enumeration value="7"/> <!-- federant error --> 640 <xsd:enumeration value="8"/> <!-- connect error --> 640 641 </xsd:restriction> 641 642 </xsd:element> -
fedd/federation/allocate_project.py
r46a0f7a r9d3e646 499 499 req = req[self.request_body_name] 500 500 else: 501 print "request error"502 501 raise service_error(service_error.req, "Bad formated request"); 503 502 504 r = self.call_service(self.url, req, self.cert_file, self.cert_pwd, 505 self.trusted_certs) 503 try: 504 r = self.call_service(self.url, req, self.cert_file, 505 self.cert_pwd, self.trusted_certs) 506 except service_error, e: 507 if e.code == service_error.connect: 508 raise service_error(service_error.internal, 509 "Cannot connect to internal service: (%d) %s" % \ 510 (e.code, e.desc)) 511 else: raise 506 512 if r.has_key(self.resp_name): 507 513 return r[self.resp_name] 508 514 else: 509 print "response error"510 515 raise service_error(service_error.protocol, 511 516 "Bad proxy response") -
fedd/federation/remote_service.py
r46a0f7a r9d3e646 346 346 { self.request_body_name: r}, self.encap_fedids)) 347 347 except socket_error, e: 348 raise service_error(service_error. protocol,348 raise service_error(service_error.connect, 349 349 "Cannot connect to %s: %s" % (url, e[1])) 350 350 except SSLError, e: 351 raise service_error(service_error. protocol,351 raise service_error(service_error.connect, 352 352 "SSL error contacting %s: %s" % (url, e.message)) 353 353 except Fault, f: … … 407 407 resp = remote_method(msg) 408 408 except socket_error, e: 409 raise service_error(service_error. protocol,409 raise service_error(service_error.connect, 410 410 "Cannot connect to %s: %s" % (url, e[1])) 411 411 except SSLError, e: 412 raise service_error(service_error. protocol,412 raise service_error(service_error.connect, 413 413 "SSL error contacting %s: %s" % (url, e.message)) 414 414 except ParseException, e: -
fedd/federation/service_error.py
r46a0f7a r9d3e646 12 12 partial = 6 13 13 federant = 7 14 connect = 8 14 15 code_str = { 15 16 access : "Access Denied", … … 18 19 server_config: "Server Configuration Error", 19 20 internal : "Internal Error", 20 partial: "Partial embedding", 21 federant: "Federant error" 21 partial: "Partial Embedding", 22 federant: "Federant Error", 23 connect: "Connection Error", 22 24 } 23 25 str_code = dict([ (v, k) for k, v in code_str.iteritems() ]) 24 client_errors = ( req ) 25 server_errors = ( access, protocol, server_config, internal) 26 client_errors = ( req, partial) 27 server_errors = ( access, protocol, server_config, internal, 28 federant, connect) 26 29 27 30 def __init__(self, code=None, desc=None, from_string=None):
Note: See TracChangeset
for help on using the changeset viewer.