[Zope-Checkins] SVN: Products.Five/trunk/traversable.py officially
deprecate stupid FakeRequet construct
Philipp von Weitershausen
philikon at philikon.de
Tue May 2 16:16:22 EDT 2006
Log message for revision 67863:
officially deprecate stupid FakeRequet construct
Changed:
U Products.Five/trunk/traversable.py
-=-
Modified: Products.Five/trunk/traversable.py
===================================================================
--- Products.Five/trunk/traversable.py 2006-05-02 20:12:44 UTC (rev 67862)
+++ Products.Five/trunk/traversable.py 2006-05-02 20:16:21 UTC (rev 67863)
@@ -13,26 +13,19 @@
##############################################################################
"""Machinery for making things traversable through adaptation
+BBB 2006/05/01 -- to be removed after 12 months
+
$Id$
"""
-from zope.interface import implements
-from zope.publisher.interfaces.browser import IBrowserRequest
-
-class FakeRequest(dict):
- implements(IBrowserRequest)
-
- def has_key(self, key):
- return False
-
- def getURL(self):
- return "http://codespeak.net/z3/five"
-
-# BBB 2006/05/01 -- to be removed after 12 months
import zope.deferredimport
zope.deferredimport.deprecated(
"__bobo_traverse__ and ITraverser/ITraversable for controlling "
- "URL traversal has become obsolete. Use an IPublishTraverse "
- "adapter instead.",
+ "URL traversal have become obsolete. Use an IPublishTraverse "
+ "adapter instead. This reference will go away in Zope 2.12.",
Traversable = "Products.Five.bbb.Traversable",
FiveTraversable = "zope.traversing.adapters.DefaultTraversable",
)
+zope.deferredimport.deprecated(
+ "Use zope.publisher.browser.TestRequest instead.",
+ FakeRequest = "zope.publisher.browser:TestRequest",
+ )
More information about the Zope-Checkins
mailing list