viff

changeset 1513:71038263d036

BeDOZa: BedozaShares should not have a value if the args ar None.
author Janus Dam Nielsen <janus.nielsen@alexandra.dk>
date Wed, 21 Jul 2010 09:40:53 +0200
parents bd9cdea06338
children c3f671892261
files viff/bedoza.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/viff/bedoza.py	Tue Jul 20 16:55:40 2010 +0200
     1.2 +++ b/viff/bedoza.py	Wed Jul 21 09:40:53 2010 +0200
     1.3 @@ -102,7 +102,10 @@
     1.4      """
     1.5  
     1.6      def __init__(self, runtime, field, value=None, keyList=None, authentication_codes=None):
     1.7 -        Share.__init__(self, runtime, field, BeDOZaShareContents(value, keyList, authentication_codes))
     1.8 +        if value == None and keyList == None and authentication_codes == None:
     1.9 +            Share.__init__(self, runtime, field)
    1.10 +        else:
    1.11 +            Share.__init__(self, runtime, field, BeDOZaShareContents(value, keyList, authentication_codes))
    1.12          
    1.13  
    1.14  class BeDOZaKeyList(object):