[Bugs] #620 URGE: Cannot Erase activities installed in /usr/share/sugar/activities

SugarLabs Bugs bugtracker-noreply at sugarlabs.org
Mon Mar 30 12:11:35 EDT 2009


#620: Cannot Erase activities installed in /usr/share/sugar/activities
-----------------------+----------------------------------------------------
    Reporter:  wadeb   |          Owner:  sdz                        
        Type:  defect  |         Status:  reopened                   
    Priority:  Urgent  |      Milestone:  Unspecified by Release Team
   Component:  SoaS    |        Version:  0.84.x                     
    Severity:  Major   |     Resolution:                             
    Keywords:          |   Distribution:  SoaS                       
Status_field:  New     |  
-----------------------+----------------------------------------------------

Comment(by tomeu):

 This seems to work:

 {{{
 diff --git a/src/jarabe/view/palettes.py b/src/jarabe/view/palettes.py
 index 49d4e77..b222fc7 100644
 --- a/src/jarabe/view/palettes.py
 +++ b/src/jarabe/view/palettes.py
 @@ -155,6 +155,9 @@ class ActivityPalette(Palette):
          self.menu.append(menu_item)
          menu_item.show()

 +        if not os.access(self._bundle.get_path(), os.W_OK):
 +            menu_item.props.sensitive = False
 +
          registry = bundleregistry.get_registry()
          self._activity_changed_sid = registry.connect('bundle_changed',
                  self.__activity_changed_cb)
 }}}

-- 
Ticket URL: <http://dev.sugarlabs.org/ticket/620#comment:9>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list