<configure
    xmlns="http://namespaces.zope.org/zope"
    xmlns:browser="http://namespaces.zope.org/browser">

    <adapter factory=".policy.RedirectionPolicy" />

    <!-- Register a page the UI -->
    <browser:page
        name="plone_redirector_view"
        for="*"
        class=".browser.FourOhFourView"
        permission="zope2.View"
        allowed_interface=".interfaces.IFourOhFourView"
        />

    <!-- Remember the movements of CMF objects -->
    <subscriber
        for="Products.CMFCore.interfaces.IContentish
             zope.app.container.interfaces.IObjectMovedEvent"
        handler=".subscribers.objectMoved"
        />
        
    <subscriber
        for="Products.CMFCore.interfaces.IContentish
             zope.app.container.interfaces.IObjectRemovedEvent"
        handler=".subscribers.objectRemoved"
        />

</configure>
