[Python-bugs-list] [ python-Bugs-439710 ] User-defined mime.types file

noreply@sourceforge.net noreply@sourceforge.net
Mon, 23 Jul 2001 13:07:14 -0700


Bugs item #439710, was opened at 2001-07-09 06:35
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=439710&group_id=5470

>Category: Python Library
Group: Feature Request
Status: Open
Resolution: None
Priority: 5
Submitted By: Andreas Jung (ajung)
>Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: User-defined mime.types file

Initial Comment:
Zope users sometimes asks to add
additional mime.types entries to Zope. 
Zopes mime-types handling is mostly 
based on mimetypes.py. In such cases
users should be able to maintain their
own mime.types files. 

mimetypes.py currently tries to look
for mime.types files in 4 hardcoded locations.

It would be more convinient to specify
additional locations e.g. by an env. var
that holds a list of additional locations
or by any other mechanism that allows user-defined
locations. 

The hardcoded locations also don't work on
Windows.

----------------------------------------------------------------------

>Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2001-07-23 13:07

Message:
Logged In: YES 
user_id=3066

Sounds like there should be an object which can be configured with a search path at construction time.  Applications could then store an appropriate mime.types file in a location that makes sense for them.

Would this suite your purposes?

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=439710&group_id=5470