From 7987da56c7118dcabfc2f48a18431a91f5c9f898 Mon Sep 17 00:00:00 2001
From: Aleksey Lim <alsroot@member.fsf.org>
Date: Tue, 22 Sep 2009 17:19:00 +0000
Subject: Error while deleting non-ds objects from Journal #1415
---
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 03dbd5c..8f80d37 100644
a
|
b
|
def delete(object_id): |
461 | 461 | """ |
462 | 462 | if os.path.exists(object_id): |
463 | 463 | os.unlink(object_id) |
| 464 | deleted.send(None, object_id=object_id) |
464 | 465 | else: |
465 | 466 | _get_datastore().delete(object_id) |
466 | 467 | |
… |
… |
def write(metadata, file_path='', update_mtime=True): |
505 | 506 | destination_path = os.path.join(metadata['mountpoint'], file_name) |
506 | 507 | shutil.copy(file_path, destination_path) |
507 | 508 | object_id = destination_path |
| 509 | created.send(None, object_id=object_id) |
508 | 510 | |
509 | 511 | return object_id |
510 | 512 | |