<!--
Copyright (c) 2002-2007 Infrae. All rights reserved.
See also LICENSE.txt
-->

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

<!-- NOTE: initially, these views were registered using the
     'attribute="render"' browser:page attribute.  It turns out
     that this breaks PUT requests, which are needed for
     kupu to save documents.  So, the legacyview classes
     were redefined to have a __call__ method rather than
     a render method -->

  <browser:page
    name="index.html"
    for="Products.Silva.interfaces.IContainer"
    class=".legacyview.LegacyContainerView"
    permission="zope2.View"
    layer=".skin.ISilvaLegacy"
  />

  <browser:page
    name="index.html"
    for="Products.Silva.interfaces.IContent"
    class=".legacyview.LegacyContentView"
    permission="zope2.View"
    layer=".skin.ISilvaLegacy"
  />

  <browser:page
    name="preview_html"
    for="Products.Silva.interfaces.IContent"
    class=".legacyview.LegacyContentPreview"
    permission="silva.ChangeSilvaContent"
    layer=".skin.ISilvaLegacy"
  />

  <browser:page
    name="preview_html"
    for="Products.Silva.interfaces.IContainer"
    class=".legacyview.LegacyContainerPreview"
    permission="silva.ChangeSilvaContent"
    layer=".skin.ISilvaLegacy"
  />

  <interface
    interface=".skin.ISilvaLegacy"
    type="zope.publisher.interfaces.browser.IBrowserSkinType"
    name="SilvaLegacy"
  />

</configure>           
