24 Oct
2003
24 Oct
'03
1:24 p.m.
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