Changeset 2d5c8b6 for fedd/fedd_client.py
- Timestamp:
- Aug 28, 2008 3:03:25 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:
- fca8740
- Parents:
- b234bb9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/fedd_client.py
rb234bb9 r2d5c8b6 150 150 """ Print an error message and exit. 151 151 152 The dictionary contains the RequestAccessFaultBody elements."""152 The dictionary contains the FeddFaultBody elements.""" 153 153 codestr = "" 154 154 … … 328 328 except RuntimeError, e: 329 329 sys.exit("Bad response. %s" % e.message) 330 elif 'get_element_ RequestAccessFaultBody' in dir(resp):331 resp_body = resp.get_element_ RequestAccessFaultBody()330 elif 'get_element_FeddFaultBody' in dir(resp): 331 resp_body = resp.get_element_FeddFaultBody() 332 332 if resp_body != None: 333 333 exit_with_fault(unpack_soap(resp_body)) … … 346 346 resp, method = loads(resp) 347 347 except Error, e: 348 resp = { ' RequestAccessFaultBody': \348 resp = { 'FeddFaultBody': \ 349 349 { 'errstr' : e.faultCode, 'desc' : e.faultString } } 350 350 … … 358 358 except RuntimeError, e: 359 359 sys.exit("Bad response. %s" % e.messgae) 360 elif resp.has_key(' RequestAccessFaultBody'):361 exit_with_fault(resp[' RequestAccessFaultBody'])360 elif resp.has_key('FeddFaultBody'): 361 exit_with_fault(resp['FeddFaultBody']) 362 362 else: sys.exit("No body in response!?") 363 363
Note: See TracChangeset
for help on using the changeset viewer.