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 wrap: on
line diff
--- a/viff/bedoza.py	Tue Jul 20 16:55:40 2010 +0200
+++ b/viff/bedoza.py	Wed Jul 21 09:40:53 2010 +0200
@@ -102,7 +102,10 @@
     """
 
     def __init__(self, runtime, field, value=None, keyList=None, authentication_codes=None):
-        Share.__init__(self, runtime, field, BeDOZaShareContents(value, keyList, authentication_codes))
+        if value == None and keyList == None and authentication_codes == None:
+            Share.__init__(self, runtime, field)
+        else:
+            Share.__init__(self, runtime, field, BeDOZaShareContents(value, keyList, authentication_codes))
         
 
 class BeDOZaKeyList(object):