[Bugs] #834 UNSP: Let activity use its own MIME type in ObjectChooser

SugarLabs Bugs bugtracker-noreply at sugarlabs.org
Sun May 10 07:45:36 EDT 2009


#834: Let activity use its own MIME type in ObjectChooser
------------------------------------------+---------------------------------
    Reporter:  alsroot                    |          Owner:  tomeu      
        Type:  enhancement                |         Status:  new        
    Priority:  Unspecified by Maintainer  |      Milestone:  0.86       
   Component:  sugar                      |        Version:  0.84.x     
    Severity:  Unspecified                |     Resolution:             
    Keywords:                             |   Distribution:  Unspecified
Status_field:  Unconfirmed                |  
------------------------------------------+---------------------------------
Changes (by bert):

 * cc: bert (added)


Comment:

 For better flexibility in a future implementation I'd make the parameter
 an array of filter specs (D-Bus signature 'aa{sv}'):
 {{{
 [
   {
     'name': 'Localized filter name one',
     'icon': 'first-icon-name',
     'mimetypes': ['first/mime-type', 'second/mime-type']
   },
   {
     'name': 'Localized filter name two',
     'icon': 'second-icon-name',
     'mimetypes': ['some/mime-type', 'other/mime-type']
   }
 ]
 }}}
 That way, additional properties could be passed, and unknown ones ignored,
 providing a forwards and backwards-compatible API. The API would not need
 to change if there were additional allowed filter properties.

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


More information about the Bugs mailing list