Message245930
In order to prevent the mimetypes module from considering global files and registry entries, you have to call mimetypes.init([]). However, this will enforce that behavior globally, and only works if the module wasn't initialized yet.
There is also a similar argument in the mimetypes.MimeTypes() constructor, however the list of files passed there are considered additionally. But there is no way to prevent an individual MinmeTypes instance to consider global files.
Adding a "ignore_global_types" option would be trivial too add to the MimeTypes constructor, and would be extremely useful. |
|
Date |
User |
Action |
Args |
2015-06-29 11:11:47 | Sebastian Noack | set | recipients:
+ Sebastian Noack |
2015-06-29 11:11:47 | Sebastian Noack | set | messageid: <1435576307.84.0.535097012645.issue24527@psf.upfronthosting.co.za> |
2015-06-29 11:11:47 | Sebastian Noack | link | issue24527 messages |
2015-06-29 11:11:47 | Sebastian Noack | create | |
|