diff options
-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 |