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 ...@@ -9,6 +9,9 @@ Zope Changes
Restructuring 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 - Disabled the XML export on the UI level - the export functionality
however is still available on the Python level. however is still available on the Python level.
......
...@@ -28,7 +28,7 @@ from webdav.interfaces import IDAVCollection ...@@ -28,7 +28,7 @@ from webdav.interfaces import IDAVCollection
from webdav.interfaces import IDAVResource from webdav.interfaces import IDAVResource
from zope.traversing.interfaces import IContainmentRoot from zope.traversing.interfaces import IContainmentRoot
from zope.app.component.interfaces import IPossibleSite from zope.location.interfaces import IPossibleSite
class IOrderedContainer(Interface): class IOrderedContainer(Interface):
......
...@@ -101,27 +101,6 @@ ...@@ -101,27 +101,6 @@
handler=".metaconfigure.resourceDirectory" 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> </meta:directives>
</configure> </configure>
...@@ -31,21 +31,6 @@ It works when we explicitly use the skin that includes that layer: ...@@ -31,21 +31,6 @@ It works when we explicitly use the skin that includes that layer:
... ...
The eagle has landed 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 Clean up
-------- --------
......
...@@ -19,7 +19,7 @@ import zope.interface ...@@ -19,7 +19,7 @@ import zope.interface
import zope.component import zope.component
import zope.event import zope.event
from zope.component.interfaces import IComponentLookup 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 from zope.app.publication.zopepublication import BeforeTraverseEvent
import ExtensionClass import ExtensionClass
......
...@@ -20,7 +20,7 @@ Now we create a site object with a stub component registry: ...@@ -20,7 +20,7 @@ Now we create a site object with a stub component registry:
>>> from OFS.ObjectManager import ObjectManager >>> from OFS.ObjectManager import ObjectManager
>>> from zope.interface import alsoProvides >>> from zope.interface import alsoProvides
>>> from zope.app.component.interfaces import ISite >>> from zope.location.interfaces import ISite
>>> components = object() >>> components = object()
>>> site = ObjectManager() >>> site = ObjectManager()
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<adapter factory=".siteManagerAdapter" /> <adapter factory=".siteManagerAdapter" />
<subscriber <subscriber
for="zope.app.component.interfaces.ISite for="zope.location.interfaces.ISite
zope.app.publication.interfaces.IBeforeTraverseEvent" zope.app.publication.interfaces.IBeforeTraverseEvent"
handler="zope.app.component.site.threadSiteSubscriber" handler="zope.app.component.site.threadSiteSubscriber"
/> />
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
$Id$ $Id$
""" """
from zope.app.component.interfaces import ISite from zope.location.interfaces import ISite
from OFS.interfaces import IObjectManager from OFS.interfaces import IObjectManager
class IObjectManagerSite(IObjectManager, ISite): class IObjectManagerSite(IObjectManager, ISite):
......
...@@ -48,7 +48,7 @@ We can turn it into a site by using the ``components.html`` view: ...@@ -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: 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) >>> ISite.providedBy(app.folder)
True True
......
...@@ -19,23 +19,23 @@ ...@@ -19,23 +19,23 @@
<meta:complexDirective <meta:complexDirective
name="class" name="class"
schema="zope.app.component.metadirectives.IClassDirective" schema="zope.security.metadirectives.IClassDirective"
handler=".metaconfigure.ClassDirective" handler=".metaconfigure.ClassDirective"
> >
<meta:subdirective <meta:subdirective
name="implements" name="implements"
schema="zope.app.component.metadirectives.IImplementsSubdirective" schema="zope.security.metadirectives.IImplementsSubdirective"
/> />
<meta:subdirective <meta:subdirective
name="require" name="require"
schema="zope.app.component.metadirectives.IRequireSubdirective" schema="zope.security.metadirectives.IRequireSubdirective"
/> />
<meta:subdirective <meta:subdirective
name="allow" name="allow"
schema="zope.app.component.metadirectives.IAllowSubdirective" schema="zope.security.metadirectives.IAllowSubdirective"
/> />
</meta:complexDirective> </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