[Checkins] SVN: zope.app.publication/trunk/ Replaced zope.deprecation dependency with BBB imports

Shane Hathaway shane at hathawaymix.org
Mon May 25 12:40:17 EDT 2009


Log message for revision 100362:
  Replaced zope.deprecation dependency with BBB imports
  

Changed:
  U   zope.app.publication/trunk/CHANGES.txt
  U   zope.app.publication/trunk/setup.py
  U   zope.app.publication/trunk/src/zope/app/publication/browser.py
  U   zope.app.publication/trunk/src/zope/app/publication/http.py
  U   zope.app.publication/trunk/src/zope/app/publication/publicationtraverse.py

-=-
Modified: zope.app.publication/trunk/CHANGES.txt
===================================================================
--- zope.app.publication/trunk/CHANGES.txt	2009-05-25 16:38:48 UTC (rev 100361)
+++ zope.app.publication/trunk/CHANGES.txt	2009-05-25 16:40:17 UTC (rev 100362)
@@ -5,7 +5,7 @@
 3.7.1 (unreleased)
 ------------------
 
-- ...
+- Replaced zope.deprecation dependency with BBB imports
 
 3.7.0 (2009-05-23)
 ------------------

Modified: zope.app.publication/trunk/setup.py
===================================================================
--- zope.app.publication/trunk/setup.py	2009-05-25 16:38:48 UTC (rev 100361)
+++ zope.app.publication/trunk/setup.py	2009-05-25 16:40:17 UTC (rev 100362)
@@ -63,7 +63,6 @@
                       'ZODB3',
                       'zope.authentication',
                       'zope.component',
-                      'zope.deprecation',
                       'zope.error',
                       'zope.i18n',
                       'zope.browser>=1.2',

Modified: zope.app.publication/trunk/src/zope/app/publication/browser.py
===================================================================
--- zope.app.publication/trunk/src/zope/app/publication/browser.py	2009-05-25 16:38:48 UTC (rev 100361)
+++ zope.app.publication/trunk/src/zope/app/publication/browser.py	2009-05-25 16:40:17 UTC (rev 100362)
@@ -26,10 +26,7 @@
 
 from zope.app.publication.http import BaseHTTPPublication
 
-from zope.traversing.publicationtraverse import PublicationTraverser
-from zope.deprecation import deprecated
-deprecated("PublicationTraverser",
-    "moved to zope.traversing.publicationtraverse")
+from zope.traversing.publicationtraverse import PublicationTraverser #BBB import
 
 class BrowserPublication(BaseHTTPPublication):
     """Web browser publication handling."""

Modified: zope.app.publication/trunk/src/zope/app/publication/http.py
===================================================================
--- zope.app.publication/trunk/src/zope/app/publication/http.py	2009-05-25 16:38:48 UTC (rev 100361)
+++ zope.app.publication/trunk/src/zope/app/publication/http.py	2009-05-25 16:40:17 UTC (rev 100362)
@@ -27,10 +27,7 @@
 
 from zope.app.publication.zopepublication import ZopePublication
 
-from zope.publisher.interfaces.http import IMethodNotAllowed
-from zope.deprecation import deprecated
-deprecated(
-    "IMethodNotAllowed", "moved to zope.publisher.interfaces")
+from zope.publisher.interfaces.http import IMethodNotAllowed #BBB import
 
 
 class BaseHTTPPublication(ZopePublication):

Modified: zope.app.publication/trunk/src/zope/app/publication/publicationtraverse.py
===================================================================
--- zope.app.publication/trunk/src/zope/app/publication/publicationtraverse.py	2009-05-25 16:38:48 UTC (rev 100361)
+++ zope.app.publication/trunk/src/zope/app/publication/publicationtraverse.py	2009-05-25 16:40:17 UTC (rev 100362)
@@ -18,15 +18,14 @@
 """
 __docformat__ = 'restructuredtext'
 
-from zope.deprecation import moved
-moved('zope.traversing.publicationtraverse')
+from zope.traversing.publicationtraverse import PublicationTraverse #BBB import
+from zope.traversing.publicationtraverse import PublicationTraverser #BBB import
 
-# AFAICT, no one depends on the exception types defined below,
-# nor should they!  - 2009-05-23
-
+#BBB: do not use
 class DuplicateNamespaces(Exception):
     """More than one namespace was specified in a request"""
 
+#BBB: do not use
 class UnknownNamespace(Exception):
     """A parameter specified an unknown namespace"""
 



More information about the Checkins mailing list