From b0113bf67c31dbeaa08cf0f1710c1be8d02a9b25 Mon Sep 17 00:00:00 2001 From: Aleksey Lim Date: Wed, 23 Sep 2009 10:53:22 +0000 Subject: Error while deleting non-ds objects from Journal #1415 --- 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 -- cgit v0.9.1