Changeset 7ec0dc2


Ignore:
Timestamp:
Jul 5, 2012 11:30:41 AM (12 years ago)
Author:
Ted Faber <faber@…>
Branches:
compt_changes, master
Children:
311ece3
Parents:
d58ee5e
Message:

Deal with list of proofs correctly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/fedd_create.py

    rd58ee5e r7ec0dc2  
    269269if opts.debug > 1: print >>sys.stderr, resp_dict
    270270
    271 proof = proof.from_dict(resp_dict.get('proof', {}))
    272 if proof and opts.auth_log:
    273     log_authentication(opts.auth_log, 'New (create)', 'succeeded', proof)
     271p = proof.from_dict(resp_dict.get('proof', {}))
     272if p and opts.auth_log:
     273    log_authentication(opts.auth_log, 'New (create)', 'succeeded', p)
    274274# Save the experiment ID certificate if we need it
    275275try:
     
    343343if e_fedid: print "fedid: %s" % e_fedid
    344344if st: print "status: %s" % st
    345 proof = proof.from_dict(resp_dict.get('proof', {}))
    346 if proof and opts.auth_log:
    347     log_authentication(opts.auth_log, 'Create', 'succeeded', proof)
     345#proof = proof.from_dict(resp_dict.get('proof', {}))
     346p_list = resp_dict.get('proof', {})
     347if p_list and opts.auth_log:
     348    for p in p_list:
     349        log_authentication(opts.auth_log, 'Create', 'succeeded',
     350                proof.from_dict(p))
Note: See TracChangeset for help on using the changeset viewer.