Changeset 990b746


Ignore:
Timestamp:
Dec 15, 2010 11:03:16 AM (14 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master
Children:
f938d66
Parents:
dcffcc6
Message:

Properly deal with empty New messages. I swear I fixed this before.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/fedd_create.py

    rdcffcc6 r990b746  
    77import ABAC
    88
    9 from string import join
     9from string import join, ascii_letters
     10from random import choice
    1011
    1112from federation.proof import proof
     
    238239    msg['credential'] = acerts
    239240
     241# ZSI will not properly construct an empty message.  If nothing has been added
     242# to msg, pick a random localname to ensure the message is created
     243if not msg:
     244    msg['experimentID'] = {
     245            'localname': join([choice(ascii_letters) for i in range(0,8)],""),
     246            }
     247
     248
    240249if opts.debug > 1: print >>sys.stderr, msg
    241250
Note: See TracChangeset for help on using the changeset viewer.