Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@member.fsf.org>2009-09-23 10:53:22 (GMT)
committer Aleksey Lim <alsroot@member.fsf.org>2009-09-23 10:53:22 (GMT)
commitb0113bf67c31dbeaa08cf0f1710c1be8d02a9b25 (patch)
treedf51a09469bf5dcbc07413dba01b77241fad4f2d
parentb321a6fcdaa4009db63cf6d6f4a53b0a531aa521 (diff)
Error while deleting non-ds objects from Journal #1415
-rw-r--r--src/jarabe/journal/model.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/jarabe/journal/model.py b/src/jarabe/journal/model.py
index f452a7f..24acb95 100644
--- a/src/jarabe/journal/model.py
+++ b/src/jarabe/journal/model.py
@@ -448,6 +448,7 @@ def delete(object_id):
"""
if os.path.exists(object_id):
os.unlink(object_id)
+ deleted.send(None, object_id=object_id)
else:
_get_datastore().delete(object_id)
@@ -492,6 +493,7 @@ def write(metadata, file_path='', update_mtime=True):
destination_path = os.path.join(metadata['mountpoint'], file_name)
shutil.copy(file_path, destination_path)
object_id = destination_path
+ created.send(None, object_id=object_id)
return object_id