diff options
-rw-r--r-- | src/jarabe/journal/model.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/jarabe/journal/model.py b/src/jarabe/journal/model.py index 4e23533..f221ced 100644 --- a/src/jarabe/journal/model.py +++ b/src/jarabe/journal/model.py @@ -277,12 +277,16 @@ def get_file(object_id): def get_unique_values(key): """Returns a list with the different values a property has taken """ - return [] + empty_dict = dbus.Dictionary({}, signature='ss') + return _get_datastore().get_uniquevaluesfor(key, empty_dict) def delete(object_id): """Removes an object from persistent storage """ - pass + if os.path.exists(object_id): + os.unlink(object_id) + else: + _get_datastore().delete(object_id) def copy(metadata, mount_point): """Copies an object to another mount point |