Ignore:
Timestamp:
Dec 14, 2010 6:58:28 PM (13 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master
Children:
c092b7f
Parents:
2627eb3
Message:

Move proofs around. Lots of changes, including fault handling.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/fedd_multiinfo.py

    r2627eb3 re83f2f2  
    1010import time
    1111
     12from federation.proof import proof
    1213from federation.remote_service import service_caller
    1314from federation.client_lib import client_opts, exit_with_fault, RPCException,\
    14         wrangle_standard_options, do_rpc, info_format
     15        wrangle_standard_options, do_rpc, info_format, log_authentication
    1516
    1617class exp_data_opts(client_opts):
     
    3839            responseBody='MultiInfoResponseBody')
    3940except RPCException, e:
    40     exit_with_fault(e)
     41    exit_with_fault(e, 'MultiInfo', opts)
    4142except RuntimeError, e:
    4243    sys.exit("Error processing RPC: %s" % e)
     
    4748        formatter(i, d)
    4849    print "---"
     50proof = proof.from_dict(resp_dict.get('proof', {}))
     51if proof and opts.auth_log:
     52    log_authentication(opts.auth_log, 'MultiInfo', 'succeeded', proof)
Note: See TracChangeset for help on using the changeset viewer.