#2909 NORM Trial-3: images saved to journal can't be opened

Zarro Boogs per Child bugtracker at laptop.org
Mon Aug 20 03:45:31 EDT 2007


#2909: images saved to journal can't be opened
---------------------+------------------------------------------------------
  Reporter:  erikb   |       Owner:  dcbw     
      Type:  defect  |      Status:  new      
  Priority:  normal  |   Milestone:  Trial-3  
 Component:  sugar   |     Version:  Build 542
Resolution:          |    Keywords:           
  Verified:  0       |  
---------------------+------------------------------------------------------
Changes (by tomeu):

  * owner:  tomeu => dcbw
  * component:  journal-activity => sugar

Comment:

 {{{
 73      1187596842.7692 DEBUG - root: Couldn't create activity
 42a4f0789c59a630459c1a494435c14c8723c485 (org.laptop.WebActivity):
 org.freedesktop.DBus.Python.KeyError: Traceback (most recent call last):
 74        File "/usr/lib/python2.5/site-packages/dbus/service.py", line
 664, in _message_cb
 75          retval = candidate_method(self, *args, **keywords)
 76        File "/usr/lib/python2.5/site-
 packages/sugar/activity/activityfactoryservice.py", line 109, in create
 77          activity = self._constructor(activity_handle)
 78        File "/usr/share/activities/Web.activity/webactivity.py", line
 59, in __init__
 79          toolbox = activity.ActivityToolbox(self)
 80        File "/usr/lib/python2.5/site-
 packages/sugar/activity/activity.py", line 171, in __init__
 81          self._activity_toolbar = ActivityToolbar(activity)
 82        File "/usr/lib/python2.5/site-
 packages/sugar/activity/activity.py", line 59, in __init__
 83          self.title.set_text(activity.metadata['title'])
 84        File "/usr/lib/python2.5/site-
 packages/sugar/datastore/datastore.py", line 50, in __getitem__
 85          return self._props[key]
 86      KeyError: 'title'
 }}}

 Looks like the title property is missing from the metadata.

 I'm going to make sugar more tolerant against these failures, but the
 title should be always present.

 Perhaps we shouldn't let an entry to be saved in the DS if it doesn't have
 all the necessary fields in the metadata.

-- 
Ticket URL: <https://dev.laptop.org/ticket/2909#comment:1>
One Laptop Per Child <http://laptop.org/>



More information about the Bugs mailing list