Changeset 0a49bd7 for fedd/fedd_multistatus.py
- Timestamp:
- Jan 15, 2011 5:52:15 PM (14 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master
- Children:
- aaf7f41
- Parents:
- ac15159 (diff), 944b746 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - git-author:
- Ted Faber <faber@…> (01/15/11 17:51:40)
- git-committer:
- Ted Faber <faber@…> (01/15/11 17:52:15)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/fedd_multistatus.py
rac15159 r0a49bd7 3 3 import sys 4 4 5 from federation.proof import proof 5 6 from federation.remote_service import service_caller 6 7 from federation.client_lib import client_opts, exit_with_fault, RPCException, \ 7 wrangle_standard_options, do_rpc, get_experiment_names 8 wrangle_standard_options, do_rpc, get_experiment_names, \ 9 log_authentication 8 10 9 11 parser = client_opts() 10 12 (opts, args) = parser.parse_args() 11 cert, fid, url = wrangle_standard_options(opts) 13 try: 14 cert, fid, url = wrangle_standard_options(opts) 15 except RuntimeError, e: 16 sys.exit("%s" %e) 12 17 13 18 try: … … 19 24 responseBody='MultiInfoResponseBody') 20 25 except RPCException, e: 21 exit_with_fault(e )26 exit_with_fault(e, 'MultiInfo', opts) 22 27 except RuntimeError, e: 23 28 sys.exit("Error processing RPC: %s" % e) … … 30 35 print ":".join([ l or "" , "%s" % (f or "") , 31 36 exp.get('experimentStatus', "") ]) 37 proof = proof.from_dict(resp_dict.get('proof', {})) 38 if proof and opts.auth_log: 39 log_authentication(opts.auth_log, 'MultiInfo', 'succeeded', proof)
Note: See TracChangeset
for help on using the changeset viewer.