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

Clemens Robbenhaar robbenhaar at espresto.com
Fri Oct 24 09:24:36 EDT 2003


Hi Romain,

 > Yo,
 > 
 > Zope doesn't know enough mime types, and there's no easy way to add them 
 > add runtime since you removed the add_type(...) method from mimetypes.py

 Who is "you" which has removed the function? I guess mimetypes 
is a core python module ...

Anyway if You feel the need to add content types to the global
mimetypes map, You can do this manually in Your custom product
__init__.py, e.g.:

from mimetypes import types_map
types_map['.ra'] = 'audio/x-pn-realaudio'
# etcetcetc


I guess this is not worse than letting Zope to the patches.

Cheers,
Clemens



More information about the Zope-Dev mailing list