[Zope3-checkins] SVN: Zope3/branches/philikon-simplify-skinning/src/bugtracker/browser/skin/ new-style skin and layer setup

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


Log message for revision 41689:
  new-style skin and layer setup
  

Changed:
  U   Zope3/branches/philikon-simplify-skinning/src/bugtracker/browser/skin/__init__.py
  U   Zope3/branches/philikon-simplify-skinning/src/bugtracker/browser/skin/configure.zcml

-=-
Modified: Zope3/branches/philikon-simplify-skinning/src/bugtracker/browser/skin/__init__.py
===================================================================
--- Zope3/branches/philikon-simplify-skinning/src/bugtracker/browser/skin/__init__.py	2006-02-19 11:12:51 UTC (rev 41688)
+++ Zope3/branches/philikon-simplify-skinning/src/bugtracker/browser/skin/__init__.py	2006-02-19 11:15:10 UTC (rev 41689)
@@ -0,0 +1,25 @@
+##############################################################################
+#
+# Copyright (c) 2006 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+"""Bug tracker skin
+
+$Id$
+"""
+from zope.publisher.interfaces.browser import IBrowserRequest
+from zope.app.rotterdam import Rotterdam
+
+class IBugtrackerLayer(IBrowserRequest):
+    """Layer for registering bugtracker views"""
+
+class IBugtrackerSkin(IBugtrackerLayer, Rotterdam):
+    """The bugtracker skin"""

Modified: Zope3/branches/philikon-simplify-skinning/src/bugtracker/browser/skin/configure.zcml
===================================================================
--- Zope3/branches/philikon-simplify-skinning/src/bugtracker/browser/skin/configure.zcml	2006-02-19 11:12:51 UTC (rev 41688)
+++ Zope3/branches/philikon-simplify-skinning/src/bugtracker/browser/skin/configure.zcml	2006-02-19 11:15:10 UTC (rev 41689)
@@ -1,8 +1,18 @@
-<configure xmlns="http://namespaces.zope.org/browser">
+<configure
+    xmlns="http://namespaces.zope.org/browser"
+    xmlns:zope="http://namespaces.zope.org/zope"
+    >
 
-  <layer name="tracker" />
+  <layer
+      interface=".IBugtrackerLayer"
+      name="tracker"
+      />
 
-  <skin name="tracker" layers="tracker zope.app.rotterdam.rotterdam default" />
+  <zope:interface
+      interface=".IBugtrackerSkin"
+      type="zope.publisher.interfaces.browser.IBrowserSkinType"
+      name="tracker"
+      />
 
   <page 
       for="*"



More information about the Zope3-Checkins mailing list