[Zope-dev] Zope doesn't know enough mime types.

Fred L. Drake, Jr. fred at zope.com
Fri Oct 24 10:14:36 EDT 2003


Romain Slootmaekers writes:
 > But why the modified mimetypes file has to contain about 40 less 
 > mime-types than the corresponding file in a python installation from 
 > python.org is a mistery to me.

The mimetypes module in general has a problem: the known MIME types
are stored in the source code.  The table in the module has definately
been extended over time; make sure you're looking at the right version
of the module from python.org.

The module *tries* to load definitions from known external lists of
MIME types (as would have been installed with Apache or Netscape), but
isn't guaranteed to find these external lists (they not be installed,
or may be installed in atypical locations).

Adding some configuration to Zope to identify additional mime.types
files to load may be a good idea, and should not be too difficult.


  -Fred

-- 
Fred L. Drake, Jr.  <fred at zope.com>
PythonLabs at Zope Corporation



More information about the Zope-Dev mailing list