Commit c724aba1 authored by Hanno Schlichting's avatar Hanno Schlichting

Removed `mime-types` option from `zope.conf`. You can use the `add_files` API...

Removed `mime-types` option from `zope.conf`. You can use the `add_files` API from `zope.contenttype` instead.
parent 7180f69a
......@@ -44,6 +44,9 @@ Features Added
Restructuring
+++++++++++++
- Removed `mime-types` option from `zope.conf`. You can use the `add_files`
API from `zope.contenttype` instead.
- Removed `OFS.ZDOM`.
- Removed the last remaining code to support `SOFTWARE_HOME` and `ZOPE_HOME`.
......
application-x-cdf cdf
application/msword doc dot wiz
application/pdf pdf
application/pkcs7-mime p7c
application/vnd.mozilla.xul+xml xul
application/vnd.ms-excel xlb xls
application/vnd.ms-powerpoint pot ppa pps ppt pwz
application/x-javascript js
application/x-pkcs12 p12 pfx
application/x-pn-realaudio ram
audio/mpeg mp3
audio/x-pn-realaudio ra
image/pict pct pic pict
message/rfc822 eml nws mht mhtml
text/css css
text/plain bat c h pl ksh
text/x-vcard vcf
text/xml xml xsl
video/mpeg m1v mpa
# This is a sample mime.types file.
# It contains a single bogus MIME type and extention for testing
# purposes. It is not loaded during normal Zope operation.
text/x-vnd.zope.test-mime-type-1 ztmt-1
# This is a sample mime.types file.
# It contains a single bogus MIME type and extention for testing
# purposes. It is not loaded during normal Zope operation.
text/x-vnd.zope.test-mime-type-2 ztmt-2
......@@ -119,11 +119,6 @@ def root_handler(config):
L.append(d)
Products.__path__[:] = L
# Augment the set of MIME types:
if config.mime_types:
from zope.contenttype import add_files
add_files(config.mime_types)
# if no servers are defined, create default http server and ftp server
if not config.servers:
config.servers = []
......
......@@ -326,22 +326,6 @@
<metadefault>$instancehome/var</metadefault>
</key>
<multikey name="mime-types" datatype="existing-file">
<description>
This specifies additional lists of MIME types that should be
loaded into Python's "mimetypes" module. The files should have
the same form as the mime.types file distributed with the Apache
HTTP server.
Each line describing a MIME type should contain the major/minor
type, followed by a space-separated list of file extensions used
for files of that type. The extensions must not include the '.'
used to separate an extension from the base file name.
Blank lines and lines beginning with a '#' are ignored.
</description>
</multikey>
<multikey name="products" datatype="existing-directory">
<description>
This specifies a product directory which is added to Products.__path__.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment