<configure 
    xmlns="http://namespaces.zope.org/zope"
    xmlns:zcml="http://namespaces.zope.org/zcml"
    zcml:condition="installed Products.CMFCore">
    
  <!-- DirectoryViews -->
  <subscriber
      handler=".unreferenceable.addIntIdSubscriber"
      for="Products.CMFCore.interfaces.IDirectoryView
           zope.app.container.interfaces.IObjectAddedEvent"
      />
  <subscriber
      handler=".unreferenceable.removeIntIdSubscriber"
      for="Products.CMFCore.interfaces.IDirectoryView
           zope.app.container.interfaces.IObjectRemovedEvent"
      />
  <subscriber
      handler=".unreferenceable.moveIntIdSubscriber"
      for="Products.CMFCore.interfaces.IDirectoryView
           zope.app.container.interfaces.IObjectMovedEvent"
      />
  <adapter 
      factory=".unreferenceable.KeyReferenceNever"
      for="Products.CMFCore.interfaces.IDirectoryView"
      trusted="y"
      />

  <!-- FSObject -->
  <subscriber
      handler=".unreferenceable.addIntIdSubscriber"
      for="Products.CMFCore.FSObject.FSObject
           zope.app.container.interfaces.IObjectAddedEvent"
      />
  <subscriber
      handler=".unreferenceable.removeIntIdSubscriber"
      for="Products.CMFCore.FSObject.FSObject
           zope.app.container.interfaces.IObjectRemovedEvent"
      />
  <subscriber
      handler=".unreferenceable.moveIntIdSubscriber"
      for="Products.CMFCore.FSObject.FSObject
           zope.app.container.interfaces.IObjectMovedEvent"
      />
  <adapter 
      factory=".unreferenceable.KeyReferenceNever"
      for="Products.CMFCore.FSObject.FSObject"
      trusted="y"
      />
</configure>
