Ticket #3450 (new defect)

Opened 14 months ago

Activity.__init__(..., create_jobject=False) broken

Reported by: sascha_silbe Owned by: erikos
Priority: Unspecified by Maintainer Milestone: Unspecified by Release Team
Component: sugar-toolkit Version: 0.92.x
Severity: Major Keywords: dx3
Cc: Distribution/OS:
Bug Status: Unconfirmed

Description

An Activity that doesn't have any useful state to save in the Journal and passes create_jobject=False to sugar.activity.activity.Activity.__init__() is bound to fail since Sugar 0.92.4 as  6b675ed resp.  0269f819 introduced unconditional accessing of self._jobject:

class Activity(Window, gtk.Container):
[...]
    def __init__(self, handle, create_jobject=True):
[...]
        self.set_title(self._jobject.metadata['title'])

Some later patches have introduced even more unconditional accessing of self._jobject.

This is a regression and should be fixed in both sugar-toolkit-gtk3 and sugar-toolkit, including the (maintained) stable branches.

Note: See TracTickets for help on using tickets.