Products.MimetypesRegistry


NameProducts.MimetypesRegistry JSON
Version 3.0.1 PyPI version JSON
download
home_pagehttps://pypi.org/project/Products.MimetypesRegistry
SummaryMIME type handling for Zope
upload_time2023-10-18 13:18:15
maintainer
docs_urlNone
authorBenjamin Saller
requires_python>=3.8
licenseGPL
keywords zope mimetype registry
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ==================
Mimetypes Registry
==================

Provide a registry of mimetypes, accessible via the ``mimetypes_registry`` tool.


Upgrade from older versions
===========================

If you want to use the updated mimetypes registry database from the version after 2.0.6 and you don't have important customizations you need to keep,
just delete the old ``mimetypes_registry`` tool from ZMI and import all steps from the ``MimetypesRegistry`` profile.


How to update the mimetypes registry from freedesktop.org
=========================================================

1) Download the latest release from freesdesktops org `shared mime info project page <https://freedesktop.org/wiki/Software/shared-mime-info/>`_.

2) Unpack the tarball

3) Copy the ``freedesktop.org.xml`` file to Products.MimetypesRegistry's
   ``mime_types`` folder.

4) Add a note to the change log ``CHANGES.rst``.

5) Push to a branch and create a pull request.


Authors
=======

- Benjamin Saller <bcsaller@yahoo.com>
- Sidnei da Silva  <sidnei@x3ng.com>
- Sylvain Thenault <sylvain.thenault@logilab.fr>
- Christian Heimes <tiran@cheimes.de>

Credits
=======

Mimetypes registry information from freedesktop.org.

Icons from:

  * Plone: http://plone.org
  * Tango: http://tango.freedesktop.org
  * FamFamFam: http://www.famfamfam.com


Changelog
=========

.. You should *NOT* be adding new change log entries to this file.
   You should create a file in the news directory instead.
   For helpful instructions, please see:
   https://github.com/plone/plone.releaser/blob/master/ADD-A-NEWS-ITEM.rst

.. towncrier release notes start

3.0.1 (2023-10-18)
------------------

Internal:


- Update configuration files.
  [plone devs] (cfffba8c)


3.0.0 (2023-04-19)
------------------

Breaking changes:


- Drop python 2.7 support.
  [gforcada] (#1)


Internal:


- Update configuration files.
  [plone devs] (5cc689e5)


2.1.9 (2022-01-19)
------------------

Bug fixes:


- Fix missing comma in install_requires.
  [maurits] (#21)


2.1.8 (2020-09-21)
------------------

Bug fixes:


- Fixed invalid escape sequences.
  [maurits] (#3130)


2.1.7 (2020-07-17)
------------------

Bug fixes:


- Fixed SyntaxWarning ("is" vs. "==").  [ajung] (#1)


2.1.6 (2020-04-23)
------------------

Bug fixes:


- Minor packaging updates. (#1)


2.1.5 (2018-09-23)
------------------

New features:

- Python 3 compatibility.
  [rnix]


2.1.4 (2018-06-04)
------------------

Bug fixes:

- Don't depend on ZODB version directly. Rely on Zope dependency


2.1.3 (2018-04-04)
------------------

Bug fixes:

- Add Python 2 / 3 compatibility [pbauer]


2.1.2 (2018-02-05)
------------------

New features:

- Add Python 2 / 3 compatibility [davilima6]


2.1.1 (2017-06-26)
------------------

Bug fixes:

- Fix MimeTypeException deprecation warnings
  [ale-rt]


2.1 (2016-11-01)
----------------

New features:

- Update ``freedesktop.org.xml`` file.
  Uses version 1.7 tagged at 2016-09-05.
  Downloaded tarball at https://freedesktop.org/wiki/Software/shared-mime-info/
  [jensens]

- Add font/woff2 to supplement type, since its not in SMI.
  [jensens]

- Move icons from skins folder to a browser resourceDirectory nameed "mimetype.icons".
  Adopt guess_icon_path to return the new location.
  [jensens]

Bug fixes:

- Cleanup: isort, autopep8, utf8 headers, manual cleanup, security decorators.
  [jensens]

- Remove outdated and unused (whole plone core) STRING_TYPES declaration from ``common.py``.
  [jensens]


2.0.10 (2016-08-09)
-------------------

Bug fixes:

- Use zope.interface decorator.
  [gforcada]


2.0.9 (2016-05-26)
------------------

Fixes:

- In ``guess_encoding`` fall back to ``utf-8`` instead of trying to
  read a portal property or the registry.  [esteele]


2.0.8 (2015-06-29)
------------------

- Use doc icon for docx, xls for xlsx, ppt for pptx
  [gotcha]


2.0.7 (2015-03-21)
------------------

- Update ``freedesktop.org.xml`` file from
  http://cgit.freedesktop.org/xdg/shared-mime-info/
  This should fix outdated mimetype recognition like ``.ogg`` being
  ``application/ogg`` rather than ``audio/ogg`` or ``docx`` being
  ``application/zip``.
  [thet]

- Upgrade test infrastructure to plone.testing.
  [tomgross]


2.0.6 (2014-09-07)
------------------

- Remove "Article" from magic matching.
  Ref https://dev.plone.org/ticket/14078
  [ebrehault]


2.0.5 (2013-08-13)
------------------

- Add missing module security declarations.


2.0.4 (2013-01-13)
------------------

- Nothing changed yet.


2.0.3 (2011-08-23)
------------------

- Allow exception MimetypeRegistry in python scripts.
  Refs http://dev.plone.org/plone/ticket/12061.
  [thomasdesvenain]


2.0.2 (2011-05-12)
------------------

- Optimize images and icon file sizes.
  [hannosch]

- More significant icon for application/msword files.
  From http://www.famfamfam.com/
  Closes http://dev.plone.org/plone/ticket/11336.
  [thomasdesvenain]

- Convert import step to be registered in ZCML partially fixing #8350
  [kiorky]


2.0.1 (2010-07-15)
------------------

- Removed the invalid `text/python-source` mime type declaration and replaced
  it with the valid but unofficial `text/x-python`.
  [hannosch]


2.0 (2010-07-01)
----------------

- Updated icons to a more modern set from Tango and Plone.
  [limi]


2.0b1 (2009-12-27)
------------------

- Use standard logging instead of relying on Archetypes helpers.
  [hannosch]

- Removed BBB code for zope.contenttype.
  [hannosch]


2.0a1 (2009-11-13)
------------------

- Avoid acquiring `mimetypes_registry` and call it via a proper API.
  [hannosch]

- Avoid acquiring `portal_properties` and call it via a proper API.
  [hannosch]

- Cleaned up package metadata and general code.
  [hannosch]

- Declare package dependencies and fixed deprecation warnings for use
  of Globals.
  [hannosch]

- Purged old Zope 2 Interface interfaces for Zope 2.12 compatibility.
  Consider branching before this revision if release required before Plone 4.
  [elro]


1.6.4
-----

- Nothing


1.6.3 (2009-05-16)
------------------

- Fix bug due to removed version.txt in 1.6.2.
  [wichert]


1.6.2 (2009-05-16)
------------------

- Updated freedesktop.org shared-mime-info from the
  shared-mime-info-0.51.tar.bz2 file.
  [sidnei]

- Added Office 2007 mime types to the mime.types file, which was
  copied from Apache ages ago. The current version of Apache doesn't
  contain those yet, nor does the shared-mime-info. Care must be taken
  when this file is updated again to make sure those mime types are
  not removed accidentally.
  [sidnei]


1.6.1 (2008-09-30)
------------------

- Updated freedesktop.org shared-mime-info from the
  shared-mime-info-0.23.tar.bz2 file.
  [hannosch]

- Added metadata.xml file to the profile.
  [hannosch]

- Changed fixUpSMIGlobs not to reinitialize the smi_mimetypes, when they are
  already initialized during tool creation.
  [hannosch]

- Compile the 750KiB freedesktop.org.xml file to a binary format which gets
  loaded on Zope startup instead of reparsing the XML file each time. If the
  modification time of the source xml file changes, the binary file is
  automatically recreated. If the binary file cannot be created the xml file
  is reparsed each time as before.
  [hannosch]

- Change some mimetypes returned by guessMime to match the mimetypes
  registered in mtr (from freedesktop.org's mime database).
  [csenger]

- Ensure that lookup doesn't return an empty tuple if asked with a
  mimetypestring returned by guessMime.
  Fixes http://dev.plone.org/plone/ticket/7876
  [csenger]

- Lookup by extensions (not glob) as submitted and retry it with lower case to
  catch filenames like 'file.TXT'
  [csenger]


1.6.0 (2007-08-16)
------------------

- Nothing


1.6.0-rc2 (2007-07-27)
----------------------

- Updated componentregisty.xml to new style.
  [hannosch]


1.6.0-rc1 (2007-07-04)
----------------------

- Do not modify the portal_skins tool configuration
  [wichert]


1.6.0-b5 (2007-05-05)
---------------------

- Fix signature of fixUpSMIGlobs.
  [wichert]


1.6.0-b4 (2007-04-28)
---------------------

- Go back to using getToolByName for CMF tools.
  [nouri]


1.6.0-b3 (2007-03-20)
---------------------

- Removed tests/runalltests.py and tests/framework.py as they have
  outlived their usefulness. To run tests use Zope's testrunner:
  ./bin/zopectl test --nowarn -s Products.MimetypesRegistry
  [stefan]


1.6.0-b2 (2007-03-05)
---------------------

- Use new cmf:registerDirectory zcml directive and removed corresponding code
  from the initialize method.
  [hannosch]


1.6.0-b1 (2007-02-27)
---------------------

- version bumped to 1.6, 1.5 is now for archetypes 1.4 bugfixing
  whatever happens with 1.6.x shouldt have effects on AT 1.4
  [jensens]


1.5.0-a1 (2007-02-06)
---------------------

- Implemented PLIP 149
  [tomster]


1.4.1-final (2006-09-15)
------------------------

- Converted usage of zLOG to new Python logging module.
  [hannosch]

- Mime type links are now urllib quoted.  This fixes #682
  (http://dev.plone.org/archetypes/ticket/682).
  [rocky]


1.4.0-final (2006-06-16)
------------------------

- Use zope.contenttype in favor of zope.app.content_types if available.
  [hannosch]


1.4.0-beta2 (2006-05-12)
------------------------

- Use zope.app.content_types in favor of OFS.content_types if available.
  [stefan]

- Spring-cleaning of tests infrastructure.
  [hannosch]


1.4.0-beta1 (2006-03-26)
------------------------

- fixed Plone #5027: MimeTypeRegistry.classify doesn't handle
  "no mimetype" gracefully. Returns 'None' now.
  [jensens]

- fixed http://dev.plone.org/archetypes/ticket/622
  [jensens]


1.4.0-alpha02 (2006-02-23)
--------------------------

- ensured that the key gotten back from windows_mimetypes.py existed
  mark says the best way is to examine each key to ensure its valid but
  would be slower.
  [runyaga]

- removed odd archetypes 1.3 style version checking
  [jensens]

- Removed BBB code for CMFCorePermissions import location.
  [hannosch]

- removed deprecation warning for ToolInit.
  [jensens]

- skip backward compatibility to the times where MTR where part of
  PortalTransforms.
  [jensens]


1.3.8-final02 (2006-01-15)
--------------------------

- nothing - the odd version checking needs a version change to stick to
  Archetypes version again.
  [yenzenz]


1.3.8-RC1 (2005-12-29)
----------------------

- Split yet another part of register() into a separate
  method. Cleanup smi_mimetypes initialize a little bit to to use
  the new method when adding new mimetypes to a already-registered
  entry.
  [dreamcatcher]

- Include aliases in the list of mimetypes for a entry. Based on
  patch by Jean Jordaan
  [dreamcatcher]

- Use a SAX-based parser instead of minidom to improve Zope startup
  time (by 17 seconds on my Pismo) and memory footprint.
  [dreamcatcher]

- Augment known mimetypes with Windows mimetypes, if available.
  [dreamcatcher]


1.3.7-final01 (2005-10-11)
--------------------------

- For the sake of sanity, include a 'mime.types' with
  MimetypesRegistry to minimize the platform-specific differences in
  mime detection when the python 'mimetypes' module is involved.
  [dreamcatcher]

- globs from freedesktop.org shared-mime-info were incorrectly
  mapped to 'extensions' and never really worked because the code
  tried to strip a leading dot, where the globs normally had ``*.``.

  The side-effect of this is that in unix, the Python 'mimetypes'
  module would happily read '/etc/mime.types' and gracefully work
  (/etc/mime.types has most of the extensions of shared-mime-info
  but a few), where on Windows it would fail to detect mimetypes by
  extension.
  [dreamcatcher]

- Added support for real globs, using fnmatch.translate and
  re.compile and a migration function that will be run from Plone
  2.1.1 migration, with some tests specific for globs read from
  shared-mime-info.
  [dreamcatcher]


1.3.6-final01 (2005-08-30)
--------------------------

- after one night sleeping over it I removed the yesterday added method.
  therefore I added according to some heuristics and OOo-Documentation
  some magic bytes to magic.py and made better tests.
  [yenzenz]

- added a method to detect mimetypes of zipped files,
  here specially for OOo now all Openoffice files and zip
  files are detected properly.  my simple tests are working:
  a OOo-Writer and a simpe zipfile are detected.
  [yenzenz]

- updated freedesktop.org.xml file to latest CVS version rev 1.57 from
  http://cvs.freedesktop.org/mime/shared-mime-info/freedesktop.org.xml
  [yenzenz]


1.3.5-final03 (2005-08-07)
--------------------------

- nothing - the odd version checking needs a version change to stick to
  Archetypes version again.
  [yenzenz]


1.3.5-final02 (2005-08-01)
--------------------------

- nothing again, need to stick to Archetypes version
  [yenzenz]


1.3.5-final (2005-07-17)
------------------------

- Added Five/Zope3 interface bridges and implements
  [tiran]


1.3.4-final (2005-07-06)
------------------------

- added icons for openoffice.org files
  [yenzenz]


1.3.3-final06 (2005-05-20)
--------------------------

- nothing (I hate to write this. But the odd version checking needs it).
  [yenzenz]


1.3.3-final-02 (2005-03-25)
---------------------------

- nothing


1.3.3-final (2005-03-05)
------------------------

- More a workaround than a fix for [ 1056252 ] Content type algorithm
  can be confused.
  [tiran]

- workaround for [ 1068001 ] BaseUnit Encoding Error: macintosh
  [yenzenz]

- In the case all else fails, try to resort to guess_content_type so
  that at least we don't get 'text/plain' when the file is in fact a
  binary file.
  [dreamcatcher]


1.3.2-5 (2004-09-30)
--------------------

- nothing


1.3.2-4 (2004-09-30)
--------------------

- nothing


1.3.2-3 (2004-09-25)
--------------------

- nothing


1.3.2-2 (2004-09-17)
--------------------

- nothing


1.3.2-1 (2004-09-04)
--------------------

- Cleaned up major parts of PT by removing the python only implementation which
  was broken anyway
  [tiran]


1.3.1-1 (2004-08-16)
--------------------

- Added text/x-html-safe mime type for new transformation
  [tiran]

- Don't return acquisition wrapped mimetype items because they may lead to
  memory leaks.
  [tiran]


1.3.0-3 (2004-08-06)
--------------------

- Added text/wiki mime type
  [tiran]

- Don't log redefine warning if the current and the new object are equal
  [tiran]

- initialize() MTR on __setstate__ aka when the MTR is loaded from ZODB.
  [tiran]


1.3.0-2 (2004-07-29)
--------------------

- Changed version to stick to Archetypes version.
  [tiran]

            

Raw data

            {
    "_id": null,
    "home_page": "https://pypi.org/project/Products.MimetypesRegistry",
    "name": "Products.MimetypesRegistry",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "Zope mimetype registry",
    "author": "Benjamin Saller",
    "author_email": "plone-developers@lists.sourceforge.net",
    "download_url": "https://files.pythonhosted.org/packages/53/73/415a2b83da722b288a5dc0435dc624c05ac1912d181cf642102995c3cf36/Products.MimetypesRegistry-3.0.1.tar.gz",
    "platform": null,
    "description": "==================\nMimetypes Registry\n==================\n\nProvide a registry of mimetypes, accessible via the ``mimetypes_registry`` tool.\n\n\nUpgrade from older versions\n===========================\n\nIf you want to use the updated mimetypes registry database from the version after 2.0.6 and you don't have important customizations you need to keep,\njust delete the old ``mimetypes_registry`` tool from ZMI and import all steps from the ``MimetypesRegistry`` profile.\n\n\nHow to update the mimetypes registry from freedesktop.org\n=========================================================\n\n1) Download the latest release from freesdesktops org `shared mime info project page <https://freedesktop.org/wiki/Software/shared-mime-info/>`_.\n\n2) Unpack the tarball\n\n3) Copy the ``freedesktop.org.xml`` file to Products.MimetypesRegistry's\n   ``mime_types`` folder.\n\n4) Add a note to the change log ``CHANGES.rst``.\n\n5) Push to a branch and create a pull request.\n\n\nAuthors\n=======\n\n- Benjamin Saller <bcsaller@yahoo.com>\n- Sidnei da Silva  <sidnei@x3ng.com>\n- Sylvain Thenault <sylvain.thenault@logilab.fr>\n- Christian Heimes <tiran@cheimes.de>\n\nCredits\n=======\n\nMimetypes registry information from freedesktop.org.\n\nIcons from:\n\n  * Plone: http://plone.org\n  * Tango: http://tango.freedesktop.org\n  * FamFamFam: http://www.famfamfam.com\n\n\nChangelog\n=========\n\n.. You should *NOT* be adding new change log entries to this file.\n   You should create a file in the news directory instead.\n   For helpful instructions, please see:\n   https://github.com/plone/plone.releaser/blob/master/ADD-A-NEWS-ITEM.rst\n\n.. towncrier release notes start\n\n3.0.1 (2023-10-18)\n------------------\n\nInternal:\n\n\n- Update configuration files.\n  [plone devs] (cfffba8c)\n\n\n3.0.0 (2023-04-19)\n------------------\n\nBreaking changes:\n\n\n- Drop python 2.7 support.\n  [gforcada] (#1)\n\n\nInternal:\n\n\n- Update configuration files.\n  [plone devs] (5cc689e5)\n\n\n2.1.9 (2022-01-19)\n------------------\n\nBug fixes:\n\n\n- Fix missing comma in install_requires.\n  [maurits] (#21)\n\n\n2.1.8 (2020-09-21)\n------------------\n\nBug fixes:\n\n\n- Fixed invalid escape sequences.\n  [maurits] (#3130)\n\n\n2.1.7 (2020-07-17)\n------------------\n\nBug fixes:\n\n\n- Fixed SyntaxWarning (\"is\" vs. \"==\").  [ajung] (#1)\n\n\n2.1.6 (2020-04-23)\n------------------\n\nBug fixes:\n\n\n- Minor packaging updates. (#1)\n\n\n2.1.5 (2018-09-23)\n------------------\n\nNew features:\n\n- Python 3 compatibility.\n  [rnix]\n\n\n2.1.4 (2018-06-04)\n------------------\n\nBug fixes:\n\n- Don't depend on ZODB version directly. Rely on Zope dependency\n\n\n2.1.3 (2018-04-04)\n------------------\n\nBug fixes:\n\n- Add Python 2 / 3 compatibility [pbauer]\n\n\n2.1.2 (2018-02-05)\n------------------\n\nNew features:\n\n- Add Python 2 / 3 compatibility [davilima6]\n\n\n2.1.1 (2017-06-26)\n------------------\n\nBug fixes:\n\n- Fix MimeTypeException deprecation warnings\n  [ale-rt]\n\n\n2.1 (2016-11-01)\n----------------\n\nNew features:\n\n- Update ``freedesktop.org.xml`` file.\n  Uses version 1.7 tagged at 2016-09-05.\n  Downloaded tarball at https://freedesktop.org/wiki/Software/shared-mime-info/\n  [jensens]\n\n- Add font/woff2 to supplement type, since its not in SMI.\n  [jensens]\n\n- Move icons from skins folder to a browser resourceDirectory nameed \"mimetype.icons\".\n  Adopt guess_icon_path to return the new location.\n  [jensens]\n\nBug fixes:\n\n- Cleanup: isort, autopep8, utf8 headers, manual cleanup, security decorators.\n  [jensens]\n\n- Remove outdated and unused (whole plone core) STRING_TYPES declaration from ``common.py``.\n  [jensens]\n\n\n2.0.10 (2016-08-09)\n-------------------\n\nBug fixes:\n\n- Use zope.interface decorator.\n  [gforcada]\n\n\n2.0.9 (2016-05-26)\n------------------\n\nFixes:\n\n- In ``guess_encoding`` fall back to ``utf-8`` instead of trying to\n  read a portal property or the registry.  [esteele]\n\n\n2.0.8 (2015-06-29)\n------------------\n\n- Use doc icon for docx, xls for xlsx, ppt for pptx\n  [gotcha]\n\n\n2.0.7 (2015-03-21)\n------------------\n\n- Update ``freedesktop.org.xml`` file from\n  http://cgit.freedesktop.org/xdg/shared-mime-info/\n  This should fix outdated mimetype recognition like ``.ogg`` being\n  ``application/ogg`` rather than ``audio/ogg`` or ``docx`` being\n  ``application/zip``.\n  [thet]\n\n- Upgrade test infrastructure to plone.testing.\n  [tomgross]\n\n\n2.0.6 (2014-09-07)\n------------------\n\n- Remove \"Article\" from magic matching.\n  Ref https://dev.plone.org/ticket/14078\n  [ebrehault]\n\n\n2.0.5 (2013-08-13)\n------------------\n\n- Add missing module security declarations.\n\n\n2.0.4 (2013-01-13)\n------------------\n\n- Nothing changed yet.\n\n\n2.0.3 (2011-08-23)\n------------------\n\n- Allow exception MimetypeRegistry in python scripts.\n  Refs http://dev.plone.org/plone/ticket/12061.\n  [thomasdesvenain]\n\n\n2.0.2 (2011-05-12)\n------------------\n\n- Optimize images and icon file sizes.\n  [hannosch]\n\n- More significant icon for application/msword files.\n  From http://www.famfamfam.com/\n  Closes http://dev.plone.org/plone/ticket/11336.\n  [thomasdesvenain]\n\n- Convert import step to be registered in ZCML partially fixing #8350\n  [kiorky]\n\n\n2.0.1 (2010-07-15)\n------------------\n\n- Removed the invalid `text/python-source` mime type declaration and replaced\n  it with the valid but unofficial `text/x-python`.\n  [hannosch]\n\n\n2.0 (2010-07-01)\n----------------\n\n- Updated icons to a more modern set from Tango and Plone.\n  [limi]\n\n\n2.0b1 (2009-12-27)\n------------------\n\n- Use standard logging instead of relying on Archetypes helpers.\n  [hannosch]\n\n- Removed BBB code for zope.contenttype.\n  [hannosch]\n\n\n2.0a1 (2009-11-13)\n------------------\n\n- Avoid acquiring `mimetypes_registry` and call it via a proper API.\n  [hannosch]\n\n- Avoid acquiring `portal_properties` and call it via a proper API.\n  [hannosch]\n\n- Cleaned up package metadata and general code.\n  [hannosch]\n\n- Declare package dependencies and fixed deprecation warnings for use\n  of Globals.\n  [hannosch]\n\n- Purged old Zope 2 Interface interfaces for Zope 2.12 compatibility.\n  Consider branching before this revision if release required before Plone 4.\n  [elro]\n\n\n1.6.4\n-----\n\n- Nothing\n\n\n1.6.3 (2009-05-16)\n------------------\n\n- Fix bug due to removed version.txt in 1.6.2.\n  [wichert]\n\n\n1.6.2 (2009-05-16)\n------------------\n\n- Updated freedesktop.org shared-mime-info from the\n  shared-mime-info-0.51.tar.bz2 file.\n  [sidnei]\n\n- Added Office 2007 mime types to the mime.types file, which was\n  copied from Apache ages ago. The current version of Apache doesn't\n  contain those yet, nor does the shared-mime-info. Care must be taken\n  when this file is updated again to make sure those mime types are\n  not removed accidentally.\n  [sidnei]\n\n\n1.6.1 (2008-09-30)\n------------------\n\n- Updated freedesktop.org shared-mime-info from the\n  shared-mime-info-0.23.tar.bz2 file.\n  [hannosch]\n\n- Added metadata.xml file to the profile.\n  [hannosch]\n\n- Changed fixUpSMIGlobs not to reinitialize the smi_mimetypes, when they are\n  already initialized during tool creation.\n  [hannosch]\n\n- Compile the 750KiB freedesktop.org.xml file to a binary format which gets\n  loaded on Zope startup instead of reparsing the XML file each time. If the\n  modification time of the source xml file changes, the binary file is\n  automatically recreated. If the binary file cannot be created the xml file\n  is reparsed each time as before.\n  [hannosch]\n\n- Change some mimetypes returned by guessMime to match the mimetypes\n  registered in mtr (from freedesktop.org's mime database).\n  [csenger]\n\n- Ensure that lookup doesn't return an empty tuple if asked with a\n  mimetypestring returned by guessMime.\n  Fixes http://dev.plone.org/plone/ticket/7876\n  [csenger]\n\n- Lookup by extensions (not glob) as submitted and retry it with lower case to\n  catch filenames like 'file.TXT'\n  [csenger]\n\n\n1.6.0 (2007-08-16)\n------------------\n\n- Nothing\n\n\n1.6.0-rc2 (2007-07-27)\n----------------------\n\n- Updated componentregisty.xml to new style.\n  [hannosch]\n\n\n1.6.0-rc1 (2007-07-04)\n----------------------\n\n- Do not modify the portal_skins tool configuration\n  [wichert]\n\n\n1.6.0-b5 (2007-05-05)\n---------------------\n\n- Fix signature of fixUpSMIGlobs.\n  [wichert]\n\n\n1.6.0-b4 (2007-04-28)\n---------------------\n\n- Go back to using getToolByName for CMF tools.\n  [nouri]\n\n\n1.6.0-b3 (2007-03-20)\n---------------------\n\n- Removed tests/runalltests.py and tests/framework.py as they have\n  outlived their usefulness. To run tests use Zope's testrunner:\n  ./bin/zopectl test --nowarn -s Products.MimetypesRegistry\n  [stefan]\n\n\n1.6.0-b2 (2007-03-05)\n---------------------\n\n- Use new cmf:registerDirectory zcml directive and removed corresponding code\n  from the initialize method.\n  [hannosch]\n\n\n1.6.0-b1 (2007-02-27)\n---------------------\n\n- version bumped to 1.6, 1.5 is now for archetypes 1.4 bugfixing\n  whatever happens with 1.6.x shouldt have effects on AT 1.4\n  [jensens]\n\n\n1.5.0-a1 (2007-02-06)\n---------------------\n\n- Implemented PLIP 149\n  [tomster]\n\n\n1.4.1-final (2006-09-15)\n------------------------\n\n- Converted usage of zLOG to new Python logging module.\n  [hannosch]\n\n- Mime type links are now urllib quoted.  This fixes #682\n  (http://dev.plone.org/archetypes/ticket/682).\n  [rocky]\n\n\n1.4.0-final (2006-06-16)\n------------------------\n\n- Use zope.contenttype in favor of zope.app.content_types if available.\n  [hannosch]\n\n\n1.4.0-beta2 (2006-05-12)\n------------------------\n\n- Use zope.app.content_types in favor of OFS.content_types if available.\n  [stefan]\n\n- Spring-cleaning of tests infrastructure.\n  [hannosch]\n\n\n1.4.0-beta1 (2006-03-26)\n------------------------\n\n- fixed Plone #5027: MimeTypeRegistry.classify doesn't handle\n  \"no mimetype\" gracefully. Returns 'None' now.\n  [jensens]\n\n- fixed http://dev.plone.org/archetypes/ticket/622\n  [jensens]\n\n\n1.4.0-alpha02 (2006-02-23)\n--------------------------\n\n- ensured that the key gotten back from windows_mimetypes.py existed\n  mark says the best way is to examine each key to ensure its valid but\n  would be slower.\n  [runyaga]\n\n- removed odd archetypes 1.3 style version checking\n  [jensens]\n\n- Removed BBB code for CMFCorePermissions import location.\n  [hannosch]\n\n- removed deprecation warning for ToolInit.\n  [jensens]\n\n- skip backward compatibility to the times where MTR where part of\n  PortalTransforms.\n  [jensens]\n\n\n1.3.8-final02 (2006-01-15)\n--------------------------\n\n- nothing - the odd version checking needs a version change to stick to\n  Archetypes version again.\n  [yenzenz]\n\n\n1.3.8-RC1 (2005-12-29)\n----------------------\n\n- Split yet another part of register() into a separate\n  method. Cleanup smi_mimetypes initialize a little bit to to use\n  the new method when adding new mimetypes to a already-registered\n  entry.\n  [dreamcatcher]\n\n- Include aliases in the list of mimetypes for a entry. Based on\n  patch by Jean Jordaan\n  [dreamcatcher]\n\n- Use a SAX-based parser instead of minidom to improve Zope startup\n  time (by 17 seconds on my Pismo) and memory footprint.\n  [dreamcatcher]\n\n- Augment known mimetypes with Windows mimetypes, if available.\n  [dreamcatcher]\n\n\n1.3.7-final01 (2005-10-11)\n--------------------------\n\n- For the sake of sanity, include a 'mime.types' with\n  MimetypesRegistry to minimize the platform-specific differences in\n  mime detection when the python 'mimetypes' module is involved.\n  [dreamcatcher]\n\n- globs from freedesktop.org shared-mime-info were incorrectly\n  mapped to 'extensions' and never really worked because the code\n  tried to strip a leading dot, where the globs normally had ``*.``.\n\n  The side-effect of this is that in unix, the Python 'mimetypes'\n  module would happily read '/etc/mime.types' and gracefully work\n  (/etc/mime.types has most of the extensions of shared-mime-info\n  but a few), where on Windows it would fail to detect mimetypes by\n  extension.\n  [dreamcatcher]\n\n- Added support for real globs, using fnmatch.translate and\n  re.compile and a migration function that will be run from Plone\n  2.1.1 migration, with some tests specific for globs read from\n  shared-mime-info.\n  [dreamcatcher]\n\n\n1.3.6-final01 (2005-08-30)\n--------------------------\n\n- after one night sleeping over it I removed the yesterday added method.\n  therefore I added according to some heuristics and OOo-Documentation\n  some magic bytes to magic.py and made better tests.\n  [yenzenz]\n\n- added a method to detect mimetypes of zipped files,\n  here specially for OOo now all Openoffice files and zip\n  files are detected properly.  my simple tests are working:\n  a OOo-Writer and a simpe zipfile are detected.\n  [yenzenz]\n\n- updated freedesktop.org.xml file to latest CVS version rev 1.57 from\n  http://cvs.freedesktop.org/mime/shared-mime-info/freedesktop.org.xml\n  [yenzenz]\n\n\n1.3.5-final03 (2005-08-07)\n--------------------------\n\n- nothing - the odd version checking needs a version change to stick to\n  Archetypes version again.\n  [yenzenz]\n\n\n1.3.5-final02 (2005-08-01)\n--------------------------\n\n- nothing again, need to stick to Archetypes version\n  [yenzenz]\n\n\n1.3.5-final (2005-07-17)\n------------------------\n\n- Added Five/Zope3 interface bridges and implements\n  [tiran]\n\n\n1.3.4-final (2005-07-06)\n------------------------\n\n- added icons for openoffice.org files\n  [yenzenz]\n\n\n1.3.3-final06 (2005-05-20)\n--------------------------\n\n- nothing (I hate to write this. But the odd version checking needs it).\n  [yenzenz]\n\n\n1.3.3-final-02 (2005-03-25)\n---------------------------\n\n- nothing\n\n\n1.3.3-final (2005-03-05)\n------------------------\n\n- More a workaround than a fix for [ 1056252 ] Content type algorithm\n  can be confused.\n  [tiran]\n\n- workaround for [ 1068001 ] BaseUnit Encoding Error: macintosh\n  [yenzenz]\n\n- In the case all else fails, try to resort to guess_content_type so\n  that at least we don't get 'text/plain' when the file is in fact a\n  binary file.\n  [dreamcatcher]\n\n\n1.3.2-5 (2004-09-30)\n--------------------\n\n- nothing\n\n\n1.3.2-4 (2004-09-30)\n--------------------\n\n- nothing\n\n\n1.3.2-3 (2004-09-25)\n--------------------\n\n- nothing\n\n\n1.3.2-2 (2004-09-17)\n--------------------\n\n- nothing\n\n\n1.3.2-1 (2004-09-04)\n--------------------\n\n- Cleaned up major parts of PT by removing the python only implementation which\n  was broken anyway\n  [tiran]\n\n\n1.3.1-1 (2004-08-16)\n--------------------\n\n- Added text/x-html-safe mime type for new transformation\n  [tiran]\n\n- Don't return acquisition wrapped mimetype items because they may lead to\n  memory leaks.\n  [tiran]\n\n\n1.3.0-3 (2004-08-06)\n--------------------\n\n- Added text/wiki mime type\n  [tiran]\n\n- Don't log redefine warning if the current and the new object are equal\n  [tiran]\n\n- initialize() MTR on __setstate__ aka when the MTR is loaded from ZODB.\n  [tiran]\n\n\n1.3.0-2 (2004-07-29)\n--------------------\n\n- Changed version to stick to Archetypes version.\n  [tiran]\n",
    "bugtrack_url": null,
    "license": "GPL",
    "summary": "MIME type handling for Zope",
    "version": "3.0.1",
    "project_urls": {
        "Homepage": "https://pypi.org/project/Products.MimetypesRegistry"
    },
    "split_keywords": [
        "zope",
        "mimetype",
        "registry"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2d3fe0be74801a8ec19e914b2a8b448103571dcfb89c5a62e090cca1173e04e1",
                "md5": "8b372a30decabfea6548aa65ce06491d",
                "sha256": "6a6c444ad7ee1b7ab8f69cb3adc4d8434547c54255769ed33e69f6e9bf48fffa"
            },
            "downloads": -1,
            "filename": "Products.MimetypesRegistry-3.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "8b372a30decabfea6548aa65ce06491d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 436060,
            "upload_time": "2023-10-18T13:18:11",
            "upload_time_iso_8601": "2023-10-18T13:18:11.811724Z",
            "url": "https://files.pythonhosted.org/packages/2d/3f/e0be74801a8ec19e914b2a8b448103571dcfb89c5a62e090cca1173e04e1/Products.MimetypesRegistry-3.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5373415a2b83da722b288a5dc0435dc624c05ac1912d181cf642102995c3cf36",
                "md5": "4ed89e8ce3048c687e4812ea653cd26d",
                "sha256": "49c17f1f4ecc8e84b190e6bb53e575331e7b7faedc2cd65ce8557bf2bc1acdbe"
            },
            "downloads": -1,
            "filename": "Products.MimetypesRegistry-3.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "4ed89e8ce3048c687e4812ea653cd26d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 417884,
            "upload_time": "2023-10-18T13:18:15",
            "upload_time_iso_8601": "2023-10-18T13:18:15.550874Z",
            "url": "https://files.pythonhosted.org/packages/53/73/415a2b83da722b288a5dc0435dc624c05ac1912d181cf642102995c3cf36/Products.MimetypesRegistry-3.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-18 13:18:15",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "products.mimetypesregistry"
}
        
Elapsed time: 0.12561s