Commit cc384419 authored by Hanno Schlichting's avatar Hanno Schlichting

Put back the defaultSkin directive. I misread the comments and only the other...

Put back the defaultSkin directive. I misread the comments and only the other two directives in the misc section where deprecated.
parent 682dfec7
......@@ -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>
......@@ -31,6 +31,21 @@ It works when we explicitly use the skin that includes that layer:
...
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
--------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment