[sugar] I fried Journal
nathan@collectivesource.com
nathan
Tue Mar 27 01:20:32 EDT 2007
I was playing around with the Journal activity and now it's broken. I'm
not sure how to get it back to a functioning state and/or how to fix the
code. I infer from the log that somehow I ended up with something that
doesn't have a title, but I haven't dug any deeper. The log output is
below including the python stack.
-Nathan
DEBUG - Activity e351425738ba022a7a2fc505039da0ae7142fbe4
(org.laptop.JournalActivity) launching...
DEBUG - Couldn't create activity e351425738ba022a7a2fc505039da0ae7142fbe4
(org.laptop.JournalActivity): Traceback (most recent call last):
File
"/var/local/velosa/olpc/sugar-jhbuild/build/lib/python2.5/site-packages/dbus/service.py",
line 457, in _message_cb
retval = candidate_method(self, *args, **keywords)
File
"/var/local/velosa/olpc/sugar-jhbuild/build/lib/python2.5/site-packages/sugar/activity/activityfactoryservice.py",
line 64, in create
activity = self._constructor(activity_handle)
File
"/var/local/velosa/olpc/sugar-jhbuild/build/share/activities/Journal.activity/journalactivity.py",
line 40, in __init__
self._filter_toolbar = FilterToolbar(self._list_view)
File
"/var/local/velosa/olpc/sugar-jhbuild/build/share/activities/Journal.activity/filtertoolbar.py",
line 110, in __init__
self._list_view.update_with_query(self._build_query())
File
"/var/local/velosa/olpc/sugar-jhbuild/build/share/activities/Journal.activity/listview.py",
line 74, in update_with_query
self._update()
File
"/var/local/velosa/olpc/sugar-jhbuild/build/share/activities/Journal.activity/listview.py",
line 87, in _update
entry_view = CollapsedObject(entry)
File
"/var/local/velosa/olpc/sugar-jhbuild/build/share/activities/Journal.activity/collapsedobject.py",
line 48, in __init__
title = hippo.CanvasText(text=self._format_title(),
File
"/var/local/velosa/olpc/sugar-jhbuild/build/share/activities/Journal.activity/collapsedobject.py",
line 99, in _format_title
return '"%s"' % self._model.get_metadata()['title']
KeyError: 'title'
DEBUG - Activity e351425738ba022a7a2fc505039da0ae7142fbe4
(org.laptop.JournalActivity) launch failed
DEBUG - _key_pressed_cb: 21 8 <alt>equal
DEBUG - Activity e351425738ba022a7a2fc505039da0ae7142fbe4
(org.laptop.JournalActivity) launch timed out
DEBUG - owner_change_cb
DEBUG - _set_icon_selected
DEBUG - ClipboardBox: /org/laptop/Clipboard/Objects/1 was added.
DEBUG - ClipboardBox._put_in_clipboard
DEBUG - adding type GTK_TEXT_BUFFER_CONTENTS.
DEBUG - ClipboardBox._put_in_clipboard
DEBUG - adding type application/x-gtk-text-buffer-rich-text.
DEBUG - ClipboardBox._put_in_clipboard
DEBUG - ClipboardBox._clipboard_clear_cb
More information about the Sugar-devel
mailing list