[Zope-Checkins] SVN: Zope/branches/Zope-2_9-branch/ Deprecated the ImageFile module for good. It will be removed in Zope 2.11.

Philipp von Weitershausen philikon at philikon.de
Fri Nov 18 08:25:28 EST 2005


Log message for revision 40210:
  Deprecated the ImageFile module for good. It will be removed in Zope 2.11.
  

Changed:
  U   Zope/branches/Zope-2_9-branch/doc/CHANGES.txt
  U   Zope/branches/Zope-2_9-branch/lib/python/ImageFile.py
  U   Zope/branches/Zope-2_9-branch/lib/python/Products/OFSP/__init__.py
  U   Zope/branches/Zope-2_9-branch/lib/python/Products/SiteErrorLog/__init__.py

-=-
Modified: Zope/branches/Zope-2_9-branch/doc/CHANGES.txt
===================================================================
--- Zope/branches/Zope-2_9-branch/doc/CHANGES.txt	2005-11-18 13:22:02 UTC (rev 40209)
+++ Zope/branches/Zope-2_9-branch/doc/CHANGES.txt	2005-11-18 13:25:28 UTC (rev 40210)
@@ -92,6 +92,9 @@
         non-existing or closed database connection next to the Connection ID
         dropdown and present it using red to increase its visibility.
 
+      - The ImageFile module has finally been deprecated for good and
+        will be removed in Zope 2.11.  Use App.ImageFile instead.
+
   after Zope 2.8.1
 
       - The '@' character is now allowed in object ids (RFC 1738 allows it).

Modified: Zope/branches/Zope-2_9-branch/lib/python/ImageFile.py
===================================================================
--- Zope/branches/Zope-2_9-branch/lib/python/ImageFile.py	2005-11-18 13:22:02 UTC (rev 40209)
+++ Zope/branches/Zope-2_9-branch/lib/python/ImageFile.py	2005-11-18 13:25:28 UTC (rev 40210)
@@ -14,12 +14,10 @@
 
 __version__='$Revision: 1.13 $'[11:-2]
 
-
 ############################################################
+# BBB 2005/11/18 -- This module will be removed in Zope 2.11
 #
-# Eventually this module will go away!
-#
-############################################################
-
-
 from App.ImageFile import ImageFile
+import warnings
+warnings.warn("The ImageFile module will be removed in Zope 2.11. "
+              "Use App.ImageFile instead.", DeprecationWarning, stacklevel=2)

Modified: Zope/branches/Zope-2_9-branch/lib/python/Products/OFSP/__init__.py
===================================================================
--- Zope/branches/Zope-2_9-branch/lib/python/Products/OFSP/__init__.py	2005-11-18 13:22:02 UTC (rev 40209)
+++ Zope/branches/Zope-2_9-branch/lib/python/Products/OFSP/__init__.py	2005-11-18 13:25:28 UTC (rev 40210)
@@ -22,7 +22,7 @@
 from AccessControl.Permissions import add_documents_images_and_files
 from AccessControl.Permissions import add_folders
 from ZClasses import createZClassForBase
-from ImageFile import ImageFile
+from App.ImageFile import ImageFile
 
 createZClassForBase( OFS.DTMLMethod.DTMLMethod, globals()
                    , 'ZDTMLMethod', 'DTML Method' )

Modified: Zope/branches/Zope-2_9-branch/lib/python/Products/SiteErrorLog/__init__.py
===================================================================
--- Zope/branches/Zope-2_9-branch/lib/python/Products/SiteErrorLog/__init__.py	2005-11-18 13:22:02 UTC (rev 40209)
+++ Zope/branches/Zope-2_9-branch/lib/python/Products/SiteErrorLog/__init__.py	2005-11-18 13:25:28 UTC (rev 40210)
@@ -17,7 +17,7 @@
 """
 
 import SiteErrorLog
-from ImageFile import ImageFile
+from App.ImageFile import ImageFile
 
 misc_={
     'ok.gif': ImageFile('www/ok.gif', globals()),



More information about the Zope-Checkins mailing list