[Zope-Checkins] SVN: Zope/trunk/lib/python/Products/Five/browser/ Put back the defaultSkin directive. I misread the comments and only the other two directives in the misc section where deprecated.

Hanno Schlichting plone at hannosch.info
Wed Feb 4 08:08:08 EST 2009


Log message for revision 96074:
  Put back the defaultSkin directive. I misread the comments and only the other two directives in the misc section where deprecated.
  

Changed:
  U   Zope/trunk/lib/python/Products/Five/browser/meta.zcml
  U   Zope/trunk/lib/python/Products/Five/browser/tests/skin.txt

-=-
Modified: Zope/trunk/lib/python/Products/Five/browser/meta.zcml
===================================================================
--- Zope/trunk/lib/python/Products/Five/browser/meta.zcml	2009-02-04 11:33:58 UTC (rev 96073)
+++ Zope/trunk/lib/python/Products/Five/browser/meta.zcml	2009-02-04 13:08:07 UTC (rev 96074)
@@ -101,6 +101,15 @@
         handler=".metaconfigure.resourceDirectory"
         />
 
+
+    <!-- misc. directives -->
+
+    <meta:directive
+        name="defaultSkin"
+        schema="zope.app.publisher.browser.metadirectives.IDefaultSkinDirective"
+        handler="zope.app.publisher.browser.metaconfigure.defaultSkin"
+        />
+
   </meta:directives>
 
 </configure>

Modified: Zope/trunk/lib/python/Products/Five/browser/tests/skin.txt
===================================================================
--- Zope/trunk/lib/python/Products/Five/browser/tests/skin.txt	2009-02-04 11:33:58 UTC (rev 96073)
+++ Zope/trunk/lib/python/Products/Five/browser/tests/skin.txt	2009-02-04 13:08:07 UTC (rev 96074)
@@ -31,7 +31,22 @@
   ...
   The eagle has landed
 
+Or when we make that skin the default skin:
 
+  >>> zcml.load_string('''
+  ...   <browser:defaultSkin
+  ...       xmlns:browser="http://namespaces.zope.org/browser"
+  ...       name="TestSkin" />
+  ... ''')
+
+  >>> print http(r"""
+  ... GET /test_folder_1_/testoid/eagle.html HTTP/1.1
+  ... """)
+  HTTP/1.1 200 OK
+  ...
+  The eagle has landed
+
+
 Clean up
 --------
 



More information about the Zope-Checkins mailing list