diff options
author | Aleksey 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) |
commit | b0113bf67c31dbeaa08cf0f1710c1be8d02a9b25 (patch) | |
tree | df51a09469bf5dcbc07413dba01b77241fad4f2d | |
parent | b321a6fcdaa4009db63cf6d6f4a53b0a531aa521 (diff) |
Error while deleting non-ds objects from Journal #1415
-rw-r--r-- | src/jarabe/journal/model.py | 2 |
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 |