Commit b6205a40 authored by Hanno Schlichting's avatar Hanno Schlichting

Updated to newer versions of zope packages. Removed long deprecated...

Updated to newer versions of zope packages. Removed long deprecated defaultSkin, layer and skin ZCML directives.
parent 995449e6
......@@ -9,6 +9,9 @@ Zope Changes
Restructuring
- Updated to newer versions of zope packages. Removed long deprecated
defaultSkin, layer and skin ZCML directives.
- Disabled the XML export on the UI level - the export functionality
however is still available on the Python level.
......
......@@ -28,7 +28,7 @@ from webdav.interfaces import IDAVCollection
from webdav.interfaces import IDAVResource
from zope.traversing.interfaces import IContainmentRoot
from zope.app.component.interfaces import IPossibleSite
from zope.location.interfaces import IPossibleSite
class IOrderedContainer(Interface):
......
......@@ -101,27 +101,6 @@
handler=".metaconfigure.resourceDirectory"
/>
<!-- misc. directives -->
<meta:directive
name="layer"
schema="zope.app.publisher.browser.metadirectives.ILayerDirective"
handler="zope.app.publisher.browser.metaconfigure.layer"
/>
<meta:directive
name="skin"
schema="zope.app.publisher.browser.metadirectives.ISkinDirective"
handler="zope.app.publisher.browser.metaconfigure.skin"
/>
<meta:directive
name="defaultSkin"
schema="zope.app.publisher.browser.metadirectives.IDefaultSkinDirective"
handler="zope.app.publisher.browser.metaconfigure.defaultSkin"
/>
</meta:directives>
</configure>
......@@ -31,21 +31,6 @@ 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
--------
......
......@@ -19,7 +19,7 @@ import zope.interface
import zope.component
import zope.event
from zope.component.interfaces import IComponentLookup
from zope.app.component.interfaces import ISite, IPossibleSite
from zope.location.interfaces import ISite, IPossibleSite
from zope.app.publication.zopepublication import BeforeTraverseEvent
import ExtensionClass
......
......@@ -20,7 +20,7 @@ Now we create a site object with a stub component registry:
>>> from OFS.ObjectManager import ObjectManager
>>> from zope.interface import alsoProvides
>>> from zope.app.component.interfaces import ISite
>>> from zope.location.interfaces import ISite
>>> components = object()
>>> site = ObjectManager()
......
......@@ -4,7 +4,7 @@
<adapter factory=".siteManagerAdapter" />
<subscriber
for="zope.app.component.interfaces.ISite
for="zope.location.interfaces.ISite
zope.app.publication.interfaces.IBeforeTraverseEvent"
handler="zope.app.component.site.threadSiteSubscriber"
/>
......
......@@ -15,7 +15,7 @@
$Id$
"""
from zope.app.component.interfaces import ISite
from zope.location.interfaces import ISite
from OFS.interfaces import IObjectManager
class IObjectManagerSite(IObjectManager, ISite):
......
......@@ -48,7 +48,7 @@ We can turn it into a site by using the ``components.html`` view:
Now we ensure that the folder has been turned into a site:
>>> from zope.app.component.interfaces import ISite
>>> from zope.location.interfaces import ISite
>>> ISite.providedBy(app.folder)
True
......
......@@ -19,23 +19,23 @@
<meta:complexDirective
name="class"
schema="zope.app.component.metadirectives.IClassDirective"
schema="zope.security.metadirectives.IClassDirective"
handler=".metaconfigure.ClassDirective"
>
<meta:subdirective
name="implements"
schema="zope.app.component.metadirectives.IImplementsSubdirective"
schema="zope.security.metadirectives.IImplementsSubdirective"
/>
<meta:subdirective
name="require"
schema="zope.app.component.metadirectives.IRequireSubdirective"
schema="zope.security.metadirectives.IRequireSubdirective"
/>
<meta:subdirective
name="allow"
schema="zope.app.component.metadirectives.IAllowSubdirective"
schema="zope.security.metadirectives.IAllowSubdirective"
/>
</meta:complexDirective>
......
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