[Zope-Checkins] SVN: Zope/trunk/ removed deprecated OFS.content_types

Andreas Jung andreas at andreas-jung.com
Thu Jul 19 05:52:30 EDT 2007


Log message for revision 78144:
  removed deprecated OFS.content_types
  

Changed:
  U   Zope/trunk/doc/CHANGES.txt
  D   Zope/trunk/lib/python/OFS/content_types.py

-=-
Modified: Zope/trunk/doc/CHANGES.txt
===================================================================
--- Zope/trunk/doc/CHANGES.txt	2007-07-19 08:37:10 UTC (rev 78143)
+++ Zope/trunk/doc/CHANGES.txt	2007-07-19 09:52:29 UTC (rev 78144)
@@ -9,6 +9,8 @@
 
     Restructuring
 
+      - Removed OFS.content_types (was deprecated since Zope 2.9)
+
       - Undeprecated 'zLOG', which will remain a backward-compatibility
         shim for the Python logging module.
 

Deleted: Zope/trunk/lib/python/OFS/content_types.py
===================================================================
--- Zope/trunk/lib/python/OFS/content_types.py	2007-07-19 08:37:10 UTC (rev 78143)
+++ Zope/trunk/lib/python/OFS/content_types.py	2007-07-19 09:52:29 UTC (rev 78144)
@@ -1,23 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2002 Zope Corporation and Contributors. All Rights Reserved.
-#
-# This software is subject to the provisions of the Zope Public License,
-# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
-# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
-# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
-# FOR A PARTICULAR PURPOSE
-#
-##############################################################################
-"""A utility module for content-type handling.
-
-$Id$
-"""
-import warnings
-warnings.warn('Using OFS.content_types is deprecated (will be removed in Zope '
-              '2.11). Instead use zope.contenttype.', 
-              DeprecationWarning,
-              stacklevel=2) 
-
-from zope.contenttype import text_type, guess_content_type, add_files



More information about the Zope-Checkins mailing list