[Zope3-checkins] SVN: Zope3/branches/philikon-simplify-skinning/src/zope/publisher/interfaces/ * Deprecate ILayer

Philipp von Weitershausen philikon at philikon.de
Sat Feb 18 05:54:24 EST 2006


Log message for revision 41655:
  * Deprecate ILayer
  * Rename ISkin to IBrowserSkinType
  

Changed:
  U   Zope3/branches/philikon-simplify-skinning/src/zope/publisher/interfaces/__init__.py
  U   Zope3/branches/philikon-simplify-skinning/src/zope/publisher/interfaces/browser.py

-=-
Modified: Zope3/branches/philikon-simplify-skinning/src/zope/publisher/interfaces/__init__.py
===================================================================
--- Zope3/branches/philikon-simplify-skinning/src/zope/publisher/interfaces/__init__.py	2006-02-18 09:21:53 UTC (rev 41654)
+++ Zope3/branches/philikon-simplify-skinning/src/zope/publisher/interfaces/__init__.py	2006-02-18 10:54:24 UTC (rev 41655)
@@ -463,6 +463,19 @@
     """
 
 
+##############################################################################
+#
+# BBB 2006/02/18, to be removed after 12 months
+#
+
 class ILayer(IInterface):
     """A grouping of related views for a request."""
 
+import zope.deprecation
+zope.deprecation.deprecated('ILayer',
+                            'The zope.publisher.interfaces.ILayer '
+                            'interface has been deprecated and will '
+                            'go away in Zope 3.5.')
+
+#
+##############################################################################

Modified: Zope3/branches/philikon-simplify-skinning/src/zope/publisher/interfaces/browser.py
===================================================================
--- Zope3/branches/philikon-simplify-skinning/src/zope/publisher/interfaces/browser.py	2006-02-18 09:21:53 UTC (rev 41654)
+++ Zope3/branches/philikon-simplify-skinning/src/zope/publisher/interfaces/browser.py	2006-02-18 10:54:24 UTC (rev 41655)
@@ -23,7 +23,6 @@
 
 from zope.publisher.interfaces import IPublication
 from zope.publisher.interfaces import IPublishTraverse
-from zope.publisher.interfaces import ILayer
 from zope.publisher.interfaces.http import IHTTPApplicationRequest
 from zope.publisher.interfaces.http import IHTTPRequest
 
@@ -110,12 +109,31 @@
 
 class IDefaultBrowserLayer(IBrowserRequest):
     """The default layer."""
-directlyProvides(IDefaultBrowserLayer, ILayer)
 
-class ISkin(IInterface):
+class IBrowserSkinType(IInterface):
     """A skin is a set of layers."""
 
+##############################################################################
+#
+# BBB 2006/02/18, to be removed after 12 months
+#
 
+# mark the default layer for BBB reasons
+import zope.deprecation
+zope.deprecation.__show__.off()
+from zope.publisher.interfaces import ILayer
+zope.deprecation.__show__.on()
+directlyProvides(IDefaultBrowserLayer, ILayer)
+
+import zope.deprecation
+ISkin = IBrowserSkinType
+zope.deprecation.deprecated('ISkin',
+                            'The zope.publisher.interfaces.browser.ISkin '
+                            'interface has been renamed to IBrowserSkinType. '
+                            'The old alias will go away in Zope 3.5.')
+#
+##############################################################################
+
 class IDefaultSkin(Interface):
     """Any component providing this interface must be a skin.
 



More information about the Zope3-Checkins mailing list