From 75bc8c2220aa636a2c63fa0d151f271c22920040 Mon Sep 17 00:00:00 2001 From: drebs Date: Thu, 21 Nov 2013 09:49:05 -0200 Subject: Add unicode conversion to put_doc. Closes #4095. --- client/src/leap/soledad/client/__init__.py | 1 + 1 file changed, 1 insertion(+) (limited to 'client') diff --git a/client/src/leap/soledad/client/__init__.py b/client/src/leap/soledad/client/__init__.py index d50dde42..08cae892 100644 --- a/client/src/leap/soledad/client/__init__.py +++ b/client/src/leap/soledad/client/__init__.py @@ -753,6 +753,7 @@ class Soledad(object): :return: the new revision identifier for the document :rtype: str """ + doc.content = self._convert_to_unicode(doc.content) return self._db.put_doc(doc) def delete_doc(self, doc): -- cgit v1.2.3 From 69fd3a11a3821468e737b8fb0e3e77abef0a4b8a Mon Sep 17 00:00:00 2001 From: drebs Date: Thu, 21 Nov 2013 10:00:35 -0200 Subject: Add scripts for debugging client and server side databases. --- client/src/leap/soledad/client/__init__.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'client') diff --git a/client/src/leap/soledad/client/__init__.py b/client/src/leap/soledad/client/__init__.py index 08cae892..62f93b3d 100644 --- a/client/src/leap/soledad/client/__init__.py +++ b/client/src/leap/soledad/client/__init__.py @@ -747,6 +747,13 @@ class Soledad(object): """ Update a document in the local encrypted database. + ============================== WARNING ============================== + This method converts the document's contents to unicode in-place. This + meanse that after calling C{put_doc(doc)}, the contents of the + document, i.e. C{doc.content}, might be different from before the + call. + ============================== WARNING ============================== + :param doc: the document to update :type doc: SoledadDocument -- cgit v1.2.3