[Zope-Checkins]
SVN: Products.Five/branches/philikon-local-components/browser/tests/skin.
Test skins the new way
Philipp von Weitershausen
philikon at philikon.de
Tue Apr 25 05:19:38 EDT 2006
Log message for revision 67587:
Test skins the new way
Changed:
A Products.Five/branches/philikon-local-components/browser/tests/skin.py
U Products.Five/branches/philikon-local-components/browser/tests/skin.zcml
-=-
Added: Products.Five/branches/philikon-local-components/browser/tests/skin.py
===================================================================
--- Products.Five/branches/philikon-local-components/browser/tests/skin.py 2006-04-25 09:13:03 UTC (rev 67586)
+++ Products.Five/branches/philikon-local-components/browser/tests/skin.py 2006-04-25 09:19:37 UTC (rev 67587)
@@ -0,0 +1,21 @@
+##############################################################################
+#
+# Copyright (c) 2006 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (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.
+#
+##############################################################################
+"""Test skins
+
+$Id$
+"""
+from zope.publisher.interfaces.browser import IDefaultBrowserLayer
+
+class ITestSkin(IDefaultBrowserLayer):
+ pass
Property changes on: Products.Five/branches/philikon-local-components/browser/tests/skin.py
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Modified: Products.Five/branches/philikon-local-components/browser/tests/skin.zcml
===================================================================
--- Products.Five/branches/philikon-local-components/browser/tests/skin.zcml 2006-04-25 09:13:03 UTC (rev 67586)
+++ Products.Five/branches/philikon-local-components/browser/tests/skin.zcml 2006-04-25 09:19:37 UTC (rev 67587)
@@ -5,11 +5,10 @@
<!-- make the zope2.Public permission work -->
<meta:redefinePermission from="zope2.Public" to="zope.Public" />
- <browser:layer name="test" />
-
- <browser:skin
+ <interface
+ interface=".skin.ITestSkin"
+ type="zope.publisher.interfaces.browser.IBrowserSkinType"
name="TestSkin"
- layers="test default"
/>
<browser:page
@@ -18,7 +17,7 @@
attribute="eagle"
name="eagle.html"
permission="zope2.Public"
- layer="test"
+ layer=".skin.ITestSkin"
/>
</configure>
More information about the Zope-Checkins
mailing list