[ckan-dev] mimetype suggestion in package creation

Flavio Coelho fccoelho at gmail.com
Tue May 31 12:18:37 UTC 2011


Hi Augusto,

nice to meet you too. I wish I had the time to work on the patch myself, but
I am glad the suggestion is appreciated.

cheers,

Flávio



On Tue, May 31, 2011 at 06:13, Augusto Herrmann
<augusto.herrmann at gmail.com>wrote:

> Hi, Flávio!
>
> Nice to see other people from Brazil posting at the CKAN-dev list.
>
> I like your suggestion. It'd be a good way to implement the ideas for
> usability improvement in the package registration I mentioned here on
> the list a few days ago.
>
> Cheers,
> Augusto Herrmann
>
> On Tue, May 31, 2011 at 7:52 AM, Flavio Coelho <fccoelho at gmail.com> wrote:
> > Hi,
> >
> > just a quick suggestion of a little feature which would make life for
> > package creators and maintainers a bit easier.
> >
> > I have done a quick ticket search about it and have found nothing, so
> > here it is:
> >
> > Python Standard library has a module called mimetypes. I suggest using
> > it to auto-fill the mimetype field for resources. mimetypes can
> > recognize a large number of mimetypes (see mimetypes.types_map) with
> > mimetypes.guess_type, and new ones can be added with
> > mimetypes.add_type.
> >
> > Naturally when mimetypes fails to guess the file type, the user would
> > be allowed to fill it in as is currently the norm.
> >
> > what do you think about it?
> >
> > --
> > Flávio Codeço Coelho
> > ================
> > +55(21) 3799-5567
> > Professor
> > Escola de Matemática Aplicada
> > Fundação Getúlio Vargas
> >
> > _______________________________________________
> > ckan-dev mailing list
> > ckan-dev at lists.okfn.org
> > http://lists.okfn.org/mailman/listinfo/ckan-dev
> >
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
>



-- 
Flávio Codeço Coelho
================
+55(21) 3799-5567
Professor
Escola de Matemática Aplicada
Fundação Getúlio Vargas
Rio de Janeiro - RJ
Brasil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20110531/1e895d1a/attachment-0001.html>


More information about the ckan-dev mailing list