Set the uid property after a new object is created

This commit is contained in:
Tomeu Vizoso 2009-01-04 16:13:59 +01:00
parent 53533be524
commit 488b9ecbb2

View File

@ -181,6 +181,7 @@ def write(ds_object, update_mtime=True, transfer_ownership=False,
ds_object.object_id = dbus_helpers.create(properties, ds_object.object_id = dbus_helpers.create(properties,
file_path, file_path,
transfer_ownership) transfer_ownership)
ds_object.metadata['uid'] = ds_object.object_id
# TODO: register the object for updates # TODO: register the object for updates
logging.debug('Written object %s to the datastore.' % ds_object.object_id) logging.debug('Written object %s to the datastore.' % ds_object.object_id)