[Bugs] #2153 UNSP: Browse fails to start from one of its journal entries

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Thu Aug 12 18:42:36 EDT 2010


#2153: Browse fails to start from one of its journal entries
------------------------------------------+---------------------------------
    Reporter:  bernie                     |          Owner:  erikos                     
        Type:  defect                     |         Status:  new                        
    Priority:  Unspecified by Maintainer  |      Milestone:  Unspecified by Release Team
   Component:  sugar-toolkit              |        Version:  Unspecified                
    Severity:  Unspecified                |       Keywords:  dextrose                   
Distribution:  Unspecified                |   Status_field:  New                        
------------------------------------------+---------------------------------

Comment(by bernie):

 sugar-toolkit-0.88.1.

 I no longer have the full log, but the part I quoted in the bug already
 seems to point at the right place:

 {{{
   File "/usr/lib/python2.6/site-packages/sugar/activity/activity.py", line
 548, in get_preview
     width, height = pixmap.get_size()
 AttributeError: 'NoneType' object has no attribute 'get_size'
 }}}

 {{{
 537         """Returns an image representing the state of the activity.
 Generally
 538         this is what the user is seeing in this moment.
 539
 540         Activities can override this method, which should return a str
 with the
 541         binary content of a png image with a width of 300 and a height
 of 225
 542         pixels.
 543         """
 544         if self.canvas is None or not hasattr(self.canvas,
 'get_snapshot'):
 545             return None
 546         pixmap = self.canvas.get_snapshot((-1, -1, 0, 0))
 547
 548         width, height = pixmap.get_size()
 }}

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/2153#comment:2>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list