[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/ Move zope.app.content_types to zope.app.contenttypes and provide compatibility+deprecation warnings.

Brian Sutherland jinty at web.de
Thu Dec 15 16:51:53 EST 2005


Log message for revision 40795:
  Move zope.app.content_types to zope.app.contenttypes and provide compatibility+deprecation warnings.

Changed:
  U   Zope3/trunk/src/zope/app/PACKAGE.cfg
  D   Zope3/trunk/src/zope/app/content_types/
  A   Zope3/trunk/src/zope/app/content_types.py
  A   Zope3/trunk/src/zope/app/contenttypes/
  U   Zope3/trunk/src/zope/app/file/DEPENDENCIES.cfg

-=-
Modified: Zope3/trunk/src/zope/app/PACKAGE.cfg
===================================================================
--- Zope3/trunk/src/zope/app/PACKAGE.cfg	2005-12-15 20:56:21 UTC (rev 40794)
+++ Zope3/trunk/src/zope/app/PACKAGE.cfg	2005-12-15 21:51:53 UTC (rev 40795)
@@ -40,8 +40,9 @@
 component
 container
 content
-# We should include content_types via the dependency mechanism.
-content_types
+# We should include contenttypes via the dependency mechanism.
+contenttypes
+content_types.py
 copypastemove
 # Maybe convert to a package as well.
 datetimeutils.py

Added: Zope3/trunk/src/zope/app/content_types.py
===================================================================
--- Zope3/trunk/src/zope/app/content_types.py	2005-12-15 20:56:21 UTC (rev 40794)
+++ Zope3/trunk/src/zope/app/content_types.py	2005-12-15 21:51:53 UTC (rev 40795)
@@ -0,0 +1,9 @@
+from zope.app.contenttypes import text_type, guess_content_type, add_files
+from zope.deprecation import deprecated
+
+msg = ('zope.app.content_types has moved to zope.app.contenttypes. '
+       'This reference go away in Zope 3.4.')
+
+deprecated('text_type', msg)
+deprecated('guess_content_type', msg)
+deprecated('add_files', msg)


Property changes on: Zope3/trunk/src/zope/app/content_types.py
___________________________________________________________________
Name: svn:eol-style
   + native

Copied: Zope3/trunk/src/zope/app/contenttypes (from rev 40790, Zope3/trunk/src/zope/app/content_types)

Modified: Zope3/trunk/src/zope/app/file/DEPENDENCIES.cfg
===================================================================
--- Zope3/trunk/src/zope/app/file/DEPENDENCIES.cfg	2005-12-15 20:56:21 UTC (rev 40794)
+++ Zope3/trunk/src/zope/app/file/DEPENDENCIES.cfg	2005-12-15 21:51:53 UTC (rev 40795)
@@ -1,7 +1,6 @@
 persistent
 transaction
 zope.app
-zope.app.content_types
 zope.app.onlinehelp
 zope.interface
 zope.publisher



More information about the Zope3-Checkins mailing list