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_ns2topdl.py

    r2627eb3 re83f2f2  
    44
    55from federation import topdl
     6from federation.proof import proof
    67from federation.remote_service import service_caller
    78from federation.client_lib import client_opts, exit_with_fault, RPCException, \
     
    4546            responseBody="Ns2TopdlResponseBody")
    4647except RPCException, e:
    47     exit_with_fault(e)
     48    exit_with_fault(e, 'Ns2Topdl', opts)
    4849except RuntimeError, e:
    4950    sys.exit("Error processing RPC: %s" % e)
     
    6970else:
    7071    print topdl.topology_to_xml(top, top="experiment")
     72proof = proof.from_dict(resp_dict.get('proof', {}))
     73if proof and opts.auth_log:
     74    log_authentication(opts.auth_log, 'New (create)', 'succeeded', proof)
Note: See TracChangeset for help on using the changeset viewer.