[Zope3-checkins]
SVN: Zope3/branches/philikon-simplify-skinning/src/zope/app/publisher/browser/tests/test_directives.py
Introduce BBB markers and ignore the deprecation message on ILayer.
Philipp von Weitershausen
philikon at philikon.de
Tue Feb 21 09:39:59 EST 2006
Log message for revision 41728:
Introduce BBB markers and ignore the deprecation message on ILayer.
Changed:
U Zope3/branches/philikon-simplify-skinning/src/zope/app/publisher/browser/tests/test_directives.py
-=-
Modified: Zope3/branches/philikon-simplify-skinning/src/zope/app/publisher/browser/tests/test_directives.py
===================================================================
--- Zope3/branches/philikon-simplify-skinning/src/zope/app/publisher/browser/tests/test_directives.py 2006-02-21 14:38:53 UTC (rev 41727)
+++ Zope3/branches/philikon-simplify-skinning/src/zope/app/publisher/browser/tests/test_directives.py 2006-02-21 14:39:58 UTC (rev 41728)
@@ -26,7 +26,6 @@
from zope.configuration.xmlconfig import xmlconfig, XMLConfig
from zope.configuration.exceptions import ConfigurationError
from zope.publisher.browser import TestRequest
-from zope.publisher.interfaces import ILayer
from zope.publisher.interfaces.browser import IBrowserPublisher
from zope.publisher.interfaces.browser import IBrowserRequest
from zope.publisher.interfaces.browser import IBrowserSkinType, IDefaultSkin
@@ -104,10 +103,20 @@
directlyProvides(ITestMenu, IMenuItemType)
+
+##############################################################################
+# BBB 2006/02/18, to be removed after 12 months
+#
class ITestLayer(IBrowserRequest):
"""Test Layer."""
+import zope.deprecation
+zope.deprecation.__show__.off()
+from zope.publisher.interfaces import ILayer
+zope.deprecation.__show__.on()
directlyProvides(ITestLayer, ILayer)
+#
+##############################################################################
class MyResource(object):
@@ -123,6 +132,10 @@
XMLConfig('meta.zcml', zope.app.publisher.browser)()
ztapi.provideAdapter(None, ITraversable, DefaultTraversable)
+ ##########################################################################
+ #
+ # BBB 2006/02/18, to be removed after 12 months
+
def testLayer(self):
self.assertEqual(zapi.queryMultiAdapter((ob, request), name='test'),
None)
@@ -146,6 +159,9 @@
import zope.app.skins
self.assert_(zope.app.skins.testskin is testskin)
+ #
+ ##########################################################################
+
def testPage(self):
self.assertEqual(zapi.queryMultiAdapter((ob, request), name='test'),
None)
More information about the Zope3-Checkins
mailing list