Ticket #834 (assigned enhancement)

Opened 4 years ago

Last modified 9 months ago

Let activity use its own MIME type in ObjectChooser

Reported by: alsroot Owned by: erikos
Priority: Unspecified by Maintainer Milestone: 1.0
Component: sugar Version: 0.84.x
Severity: Unspecified Keywords:
Cc: sayamindu, bert, eben, erikos Distribution/OS: Unspecified
Bug Status: Assigned

Description

At present(for 0.84) activity can use limited set of mime types - sugar.mime.GENERIC_TYPE_*, but many activities use another mimes(like text/plain(only), application/zip, etc)

Change History

Changed 4 years ago by alsroot

just an option - pass hash of custom MIME types to ObjectChooser():
ObjectChooser(what=('My filter', ['text/plain', 'application/zip']))

Changed 4 years ago by sayamindu

  • cc sayamindu added

Changed 4 years ago by bert

  • cc bert added

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.

Changed 4 years ago by tomeu

  • cc eben added

Eben, the last proposed design mockups play well with what Bert is proposing?

Changed 4 years ago by erikos

  • cc erikos added
  • status_field changed from Unconfirmed to Assigned

Changed 4 years ago by tomeu

  • milestone changed from 0.86 to 0.88

don't see this happening for 0.86, please help

Changed 3 years ago by walter

  • milestone changed from 0.88 to 0.90

No patch. 0.90?

Changed 9 months ago by erikos

  • owner changed from tomeu to erikos
  • status changed from new to assigned
  • milestone changed from 0.90 to 1.0

Came up again with the request of adding mime-types to the generic ones in sugar-base to use in the objectchooser filter.

 http://lists.sugarlabs.org/archive/sugar-devel/2012-August/039192.html

Changed 9 months ago by erikos

Related topic for the better mime type support:  http://bugs.sugarlabs.org/ticket/3826

Note: See TracTickets for help on using tickets.