[Checkins] SVN: zope.app.http/trunk/ Moved IHTTPException to zope.publisher.interfaces.http to reduce dependencies

Shane Hathaway shane at hathawaymix.org
Fri May 22 22:20:26 EDT 2009


Log message for revision 100273:
  Moved IHTTPException to zope.publisher.interfaces.http to reduce dependencies
  

Changed:
  U   zope.app.http/trunk/CHANGES.txt
  U   zope.app.http/trunk/setup.py
  U   zope.app.http/trunk/src/zope/app/http/exception/notfound.py
  U   zope.app.http/trunk/src/zope/app/http/exception/tests/test_unauthorized.py
  U   zope.app.http/trunk/src/zope/app/http/exception/unauthorized.py
  U   zope.app.http/trunk/src/zope/app/http/interfaces.py

-=-
Modified: zope.app.http/trunk/CHANGES.txt
===================================================================
--- zope.app.http/trunk/CHANGES.txt	2009-05-23 02:07:17 UTC (rev 100272)
+++ zope.app.http/trunk/CHANGES.txt	2009-05-23 02:20:25 UTC (rev 100273)
@@ -5,9 +5,9 @@
 3.6.0 (unreleased)
 ------------------
 
-- Moved IMethodNotAllowed and MethodNotAllowed from zope.app.http to
-  zope.publisher.interfaces.http, fixing dependency cycles involving
-  zope.app.http.
+- Moved IHTTPException, IMethodNotAllowed, and MethodNotAllowed from
+  zope.app.http to zope.publisher.interfaces.http, fixing dependency
+  cycles involving zope.app.http.
 
 3.5.2 (2009-04-01)
 ------------------

Modified: zope.app.http/trunk/setup.py
===================================================================
--- zope.app.http/trunk/setup.py	2009-05-23 02:07:17 UTC (rev 100272)
+++ zope.app.http/trunk/setup.py	2009-05-23 02:20:25 UTC (rev 100273)
@@ -53,6 +53,7 @@
                 'zope.app.file',
                 'zope.app.zcmlfiles']),
       install_requires=['setuptools',
+                        'zope.deferredimport',
                         'zope.interface',
                         'zope.publisher>=3.8.0',
                         'zope.container',

Modified: zope.app.http/trunk/src/zope/app/http/exception/notfound.py
===================================================================
--- zope.app.http/trunk/src/zope/app/http/exception/notfound.py	2009-05-23 02:07:17 UTC (rev 100272)
+++ zope.app.http/trunk/src/zope/app/http/exception/notfound.py	2009-05-23 02:20:25 UTC (rev 100273)
@@ -17,7 +17,7 @@
 """
 __docformat__ = 'restructuredtext'
 
-from zope.app.http.interfaces import IHTTPException
+from zope.publisher.interfaces.http import IHTTPException
 from zope.interface import implements
 
 class NotFound(object):

Modified: zope.app.http/trunk/src/zope/app/http/exception/tests/test_unauthorized.py
===================================================================
--- zope.app.http/trunk/src/zope/app/http/exception/tests/test_unauthorized.py	2009-05-23 02:07:17 UTC (rev 100272)
+++ zope.app.http/trunk/src/zope/app/http/exception/tests/test_unauthorized.py	2009-05-23 02:20:25 UTC (rev 100273)
@@ -17,7 +17,7 @@
 """
 from unittest import TestCase, main, makeSuite
 from zope.publisher.browser import TestRequest
-from zope.app.http.interfaces import IHTTPException
+from zope.publisher.interfaces.http import IHTTPException
 
 class Test(TestCase):
 

Modified: zope.app.http/trunk/src/zope/app/http/exception/unauthorized.py
===================================================================
--- zope.app.http/trunk/src/zope/app/http/exception/unauthorized.py	2009-05-23 02:07:17 UTC (rev 100272)
+++ zope.app.http/trunk/src/zope/app/http/exception/unauthorized.py	2009-05-23 02:20:25 UTC (rev 100273)
@@ -17,7 +17,7 @@
 """
 __docformat__ = 'restructuredtext'
 
-from zope.app.http.interfaces import IHTTPException
+from zope.publisher.interfaces.http import IHTTPException
 from zope.interface import implements
 
 class Unauthorized(object):

Modified: zope.app.http/trunk/src/zope/app/http/interfaces.py
===================================================================
--- zope.app.http/trunk/src/zope/app/http/interfaces.py	2009-05-23 02:07:17 UTC (rev 100272)
+++ zope.app.http/trunk/src/zope/app/http/interfaces.py	2009-05-23 02:20:25 UTC (rev 100273)
@@ -18,7 +18,15 @@
 __docformat__ = 'restructuredtext'
 
 from zope.interface import Interface, Attribute
+import zope.deferredimport
 
+zope.deferredimport.deprecatedFrom(
+    "This import has moved to zope.publisher.interfaces.http. "
+    "This import will stop working in the future.",
+    'zope.publisher.interfaces.http',
+    'IHTTPException',
+    )
+
 class INullResource(Interface):
     """Placeholder objects for new container items to be created via PUT
     """
@@ -26,8 +34,3 @@
     container = Attribute("The container of the future resource")
     name = Attribute("The name of the object to be created.")
 
-class IHTTPException(Interface):
-    """Marker interface for http exceptions views
-    """
-    pass
-



More information about the Checkins mailing list