<configure
    xmlns="http://namespaces.zope.org/zope"
    xmlns:i18n="http://namespaces.zope.org/i18n"
    xmlns:silva="http://infrae.com/ns/silvaconf"
    >

  <include package="Products.Silva" />

  <!-- i18n -->
  <i18n:registerTranslations directory="i18n" />

  <include package=".adapters" />
  
  <include package=".browser" />

  <!-- register the extension and its content types --> 
  <silva:extension
    name="SilvaDocument" 
    title="Silva Document"
    />

  <silva:versionedcontent
    content=".Document.Document"
    version=".Document.DocumentVersion"
    extension_name="SilvaDocument"
    icon="www/silvadoc.gif"
    priority="-6"
    />  

  <!-- event handlers -->
  
  <subscriber
    for=".interfaces.IDocument
      OFS.interfaces.IObjectWillBeRemovedEvent"
    handler=".Document.document_will_be_removed" 
  />
  
  <subscriber
    for=".interfaces.IDocumentVersion
      OFS.interfaces.IObjectClonedEvent"
    handler=".Document.documentversion_cloned" 
  />
  
  
</configure>
