[Zope3-checkins] SVN: Zope3/branches/philikon-simplify-skinning/src/zope/app/ Rotterdam-based skins can directly inherit from the Rotterdam skin interface.

Philipp von Weitershausen philikon at philikon.de
Sun Feb 19 06:10:55 EST 2006


Log message for revision 41686:
  Rotterdam-based skins can directly inherit from the Rotterdam skin interface.
  Saves an import :).
  

Changed:
  U   Zope3/branches/philikon-simplify-skinning/src/zope/app/debugskin/__init__.py
  U   Zope3/branches/philikon-simplify-skinning/src/zope/app/tree/browser/__init__.py

-=-
Modified: Zope3/branches/philikon-simplify-skinning/src/zope/app/debugskin/__init__.py
===================================================================
--- Zope3/branches/philikon-simplify-skinning/src/zope/app/debugskin/__init__.py	2006-02-19 11:10:08 UTC (rev 41685)
+++ Zope3/branches/philikon-simplify-skinning/src/zope/app/debugskin/__init__.py	2006-02-19 11:10:55 UTC (rev 41686)
@@ -17,11 +17,10 @@
 """
 __docformat__ = 'restructuredtext'
 from zope.publisher.interfaces.browser import IBrowserRequest
-from zope.publisher.interfaces.browser import IDefaultBrowserLayer
-from zope.app.rotterdam import rotterdam
+from zope.app.rotterdam import Rotterdam
 
 class IDebugLayer(IBrowserRequest):
     """Layer that we can register debug views with."""
 
-class IDebugSkin(IDebugLayer, rotterdam, IDefaultBrowserLayer):
+class IDebugSkin(IDebugLayer, Rotterdam):
     """Rotterdam-based skin with debug functionality"""

Modified: Zope3/branches/philikon-simplify-skinning/src/zope/app/tree/browser/__init__.py
===================================================================
--- Zope3/branches/philikon-simplify-skinning/src/zope/app/tree/browser/__init__.py	2006-02-19 11:10:08 UTC (rev 41685)
+++ Zope3/branches/philikon-simplify-skinning/src/zope/app/tree/browser/__init__.py	2006-02-19 11:10:55 UTC (rev 41686)
@@ -18,8 +18,7 @@
 __docformat__ = 'restructuredtext'
 
 from zope.publisher.interfaces.browser import IBrowserRequest
-from zope.publisher.interfaces.browser import IDefaultBrowserLayer
-from zope.app.rotterdam import rotterdam
+from zope.app.rotterdam import Rotterdam
 
 from zope.app import zapi
 from zope.app.publisher.browser import BrowserView
@@ -30,7 +29,7 @@
 class IStaticTreeLayer(IBrowserRequest):
     """Layer that we can register our own navigation macro for."""
 
-class IStaticTreeSkin(IStaticTreeLayer, rotterdam, IDefaultBrowserLayer):
+class IStaticTreeSkin(IStaticTreeLayer, Rotterdam):
     """Skin based on Rotterdam that includes the static tree
     navigation macro."""
 



More information about the Zope3-Checkins mailing list