From cff9a6ed359f3cfc8ec3e7ad94f159acfc5a4fd8 Mon Sep 17 00:00:00 2001 From: drebs Date: Mon, 3 Dec 2012 14:13:56 -0200 Subject: Add default key to Leap Document --- src/leap/soledad/leap.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/leap') diff --git a/src/leap/soledad/leap.py b/src/leap/soledad/leap.py index 863e63f8..46f95a1a 100644 --- a/src/leap/soledad/leap.py +++ b/src/leap/soledad/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): """ -- cgit v1.2.3