[Trac #1462] cannot create an object without a file name
Zarro Boogs per Child
bugtracker at laptop.org
Sat May 12 04:59:16 EDT 2007
#1462: cannot create an object without a file name
------------------------+---------------------------------------------------
Reporter: tomeu | Owner: bcsaller
Type: defect | Status: new
Priority: normal | Milestone: Untriaged
Component: datastore | Version:
Resolution: | Keywords:
------------------------+---------------------------------------------------
Comment (by tomeu):
With that fix applied, I get this exception when trying to update (now
with a file name):
{{{
ERROR - Traceback (most recent call last):
File "/home/tomeu/sugar-jhbuild/build/lib/python2.4/site-
packages/sugar/activity/activity.py", line 217, in _focus_out_event_cb
self.save()
File "/home/tomeu/sugar-jhbuild/build/lib/python2.4/site-
packages/sugar/activity/activity.py", line 240, in save
datastore.write(self.jobject)
File "/home/tomeu/sugar-jhbuild/build/lib/python2.4/site-
packages/sugar/datastore/datastore.py", line 57, in write
ds_object.file_path)
File "/home/tomeu/sugar-jhbuild/build/lib/python2.4/site-
packages/sugar/datastore/dbus_helpers.py", line 57, in update
_data_store.update(uid, dbus.Dictionary(properties), filename)
File "/home/tomeu/sugar-jhbuild/build/lib/python2.4/site-
packages/dbus/proxies.py", line 134, in __call__
args,
File "/home/tomeu/sugar-jhbuild/build/lib/python2.4/site-
packages/dbus/connection.py", line 595, in call_blocking
reply_message = self.send_message_with_reply_and_block(
DBusException: org.freedesktop.DBus.Python.exceptions.KeyError: Traceback
(most recent call last):
File "/home/tomeu/sugar-jhbuild/build/lib/python2.4/site-
packages/dbus/service.py", line 462, in _message_cb
retval = candidate_method(self, *args, **keywords)
File "/home/tomeu/sugar-jhbuild/build/lib/python2.4/site-
packages/olpc/datastore/datastore.py", line 190, in update
self.backingstore.set(uid, filelike)
File "/home/tomeu/sugar-jhbuild/build/lib/python2.4/site-
packages/olpc/datastore/backingstore.py", line 94, in set
self._writeContent(self.get(uid), filelike)
File "/home/tomeu/sugar-jhbuild/build/lib/python2.4/site-
packages/olpc/datastore/backingstore.py", line 86, in get
raise KeyError("object for uid:%s missing" % uid)
KeyError: u'object for uid:32fe8f0f-239f-4e0a-984e-7e1e400a85db missing'
}}}
--
Ticket URL: <http://dev.laptop.org/ticket/1462#comment:1>
One Laptop Per Child <http://laptop.org/>
More information about the Bugs
mailing list