Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/jarabe/journal/journalentrybundle.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/jarabe/journal/journalentrybundle.py')
-rw-r--r--src/jarabe/journal/journalentrybundle.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/jarabe/journal/journalentrybundle.py b/src/jarabe/journal/journalentrybundle.py
index c220c09..8edabf1 100644
--- a/src/jarabe/journal/journalentrybundle.py
+++ b/src/jarabe/journal/journalentrybundle.py
@@ -53,13 +53,14 @@ class JournalEntryBundle(Bundle):
try:
metadata = self._read_metadata(bundle_dir)
metadata['uid'] = uid
+ object_uri = ('datastore:' + uid) if uid else None
preview = self._read_preview(temp_uid, bundle_dir)
if preview is not None:
metadata['preview'] = dbus.ByteArray(preview)
file_path = os.path.join(bundle_dir, temp_uid)
- model.write(metadata, file_path)
+ model.write(metadata, 'datastore:', object_uri, file_path)
finally:
shutil.rmtree(bundle_dir, ignore_errors=True)