Skip to content

Commit

Permalink
Export the mtypes module under the old types name. Fix configure.zcml…
Browse files Browse the repository at this point in the history
… to use the new mtypes name so it can be loaded.
  • Loading branch information
jamadden committed Mar 1, 2013
1 parent a6ff4fd commit b0746c9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion CHANGES.txt
Expand Up @@ -5,7 +5,10 @@ CHANGES
2.0.0a2 (unreleased)
--------------------

- Nothing changed yet.
- Restore the ability to write `from zope.mimetype import types`.

- Make `configure.zcml` respect the renaming of the `types` module
so that it can be loaded.


2.0.0a1 (2013-02-27)
Expand All @@ -19,6 +22,8 @@ CHANGES
- Replaced deprecated ``zope.interface.implements`` usage with equivalent
``zope.interface.implementer`` decorator.

- Renamed `zope.mimetype.types` to `zope.mimetype.mtypes`.

- Dropped support for Python 2.4 and 2.5.


Expand Down
1 change: 1 addition & 0 deletions src/zope/mimetype/__init__.py
@@ -1 +1,2 @@
from zope.mimetype import mtypes
types = mtypes # alternate spelling/backwards (1.3) compatible export
2 changes: 1 addition & 1 deletion src/zope/mimetype/configure.zcml
Expand Up @@ -3,7 +3,7 @@
i18n_domain="zope.mimetype">

<mimeTypes
module=".types"
module=".mtypes"
file="types.csv"
/>

Expand Down

0 comments on commit b0746c9

Please sign in to comment.