Ignore:
Timestamp:
Jan 15, 2011 5:52:15 PM (13 years ago)
Author:
Ted Faber <faber@…>
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)
Message:

merge from current

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/fedd_ns2topdl.py

    rac15159 r0a49bd7  
    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, \
     
    1213        client_opts.__init__(self)
    1314        self.add_option("--file", dest="file",
     15                action='callback', callback=self.expand_file, type='str',
    1416                help="experiment description file")
    1517        self.add_option("--output", dest="outfile", type="string",
     
    1921(opts, args) = parser.parse_args()
    2022
    21 cert, fid, url = wrangle_standard_options(opts)
     23try:
     24    cert, fid, url = wrangle_standard_options(opts)
     25except RuntimeError, e:
     26    sys.exit("%s" %e)
    2227
    2328if opts.file:
     
    4146            responseBody="Ns2TopdlResponseBody")
    4247except RPCException, e:
    43     exit_with_fault(e)
     48    exit_with_fault(e, 'Ns2Topdl', opts)
    4449except RuntimeError, e:
    4550    sys.exit("Error processing RPC: %s" % e)
     
    6570else:
    6671    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.