[Zope-dev] zope.mimetype dependency on zope.publisher

Fred Drake fdrake at gmail.com
Thu Feb 21 10:40:22 EST 2008


On Thu, Feb 21, 2008 at 9:31 AM, Chris Withers <chris at simplistix.co.uk> wrote:
>  Do I remember rightly that there's a zope.contenttype these could be
>  moved to?

You do, though I didn't.  :-)

zope.contenttype is a copy/hack of an older version of the mimetypes
module from Python's standard library.  I'm not sure it's a *good*
place to put the functions, but it's probably better than
zope.publisher.

zope.publisher.contenttype would need to remain for compatibility, but
should be able to simply import the functions from zope.contenttype.

I'll suggest the just copying the implementation module to
zope.contenttype.parser.  :-)  There are tests that will need to be
copied as well.


 -Fred

-- 
Fred L. Drake, Jr. <fdrake at gmail.com>
"Chaos is the score upon which reality is written." --Henry Miller


More information about the Zope-Dev mailing list