[Dextrose] [PATCH sugar 09/11] datastore.write expects a DSObject, not an id

Aleksey Lim alsroot at member.fsf.org
Sat Jan 15 09:10:48 EST 2011


From: Tomeu Vizoso <tomeu.vizoso at collabora.co.uk>

---
 src/jarabe/frame/activitiestray.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/jarabe/frame/activitiestray.py b/src/jarabe/frame/activitiestray.py
index 3a80ac0..3c2326c 100644
--- a/src/jarabe/frame/activitiestray.py
+++ b/src/jarabe/frame/activitiestray.py
@@ -544,7 +544,7 @@ class IncomingTransferButton(BaseTransferButton):
         progress = file_transfer.props.transferred_bytes /      \
                    file_transfer.file_size
         self._ds_object.metadata['progress'] = str(progress * 100)
-        datastore.write(self._ds_object.object_id, update_mtime=False)
+        datastore.write(self._ds_object, update_mtime=False)
 
     def __reply_handler_cb(self):
         logging.debug('__reply_handler_cb %r', self._object_id)
-- 
1.7.3.4



More information about the Dextrose mailing list