summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2012-12-03 14:13:56 -0200
committerdrebs <drebs@leap.se>2012-12-03 14:13:56 -0200
commit269fb7e485de11233d389dbe2d33efca8b5b6600 (patch)
treec9c867c54e2a1b45ed2f362b78405e5ef9cf2d67
parentd1f25b2c013d1f7ebf3a0f5239b0c28c1189896a (diff)
Add default key to Leap Document
-rw-r--r--leap.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/leap.py b/leap.py
index 863e63f8..46f95a1a 100644
--- a/leap.py
+++ b/leap.py
@@ -5,6 +5,7 @@ except ImportError:
from u1db import Document
from u1db.remote.http_target import HTTPSyncTarget
+from u1db.remote.http_database import HTTPDatabase
import base64
@@ -16,10 +17,11 @@ class LeapDocument(Document):
"""
def __init__(self, doc_id=None, rev=None, json='{}', has_conflicts=False,
- encrypted_json=None):
+ encrypted_json=None, default_key=None):
super(Document, self).__init__(doc_id, rev, json, has_conflicts)
if encrypted_json:
self.set_encrypted_json(encrypted_json)
+ self._default_key = default_key
def get_encrypted_json(self):
"""