[Zope3-checkins] CVS: Zope3/src/zope/app/services - pagefolder.zcml:1.1

Jim Fulton jim@zope.com
Wed, 2 Jul 2003 18:10:54 -0400


Update of /cvs-repository/Zope3/src/zope/app/services
In directory cvs.zope.org:/tmp/cvs-serv32760/src/zope/app/services

Added Files:
	pagefolder.zcml 
Log Message:
Separated pagefolder config into a separate file.

Added a security assertion for the new applyDefaults method.


=== Added File Zope3/src/zope/app/services/pagefolder.zcml ===
<zopeConfigure
    xmlns='http://namespaces.zope.org/zope'
    xmlns:event='http://namespaces.zope.org/event'
    xmlns:fssync='http://namespaces.zope.org/fssync'
    >

<!-- Page Folder -->

<content class="zope.app.services.pagefolder.PageFolder">
  <factory
    id = "zope.app.services.PageFolder"
    permission = "zope.ManageServices"
    title = "View Folder"
    />
  <require
      permission="zope.View"
      interface="zope.app.interfaces.container.IReadContainer" />
  <require
      permission="zope.ManageServices"
      interface="zope.app.interfaces.container.IWriteContainer
                 zope.app.interfaces.services.pagefolder.IPageFolderInfo"
      set_schema="zope.app.interfaces.services.pagefolder.IPageFolderInfo"
      attributes="getRegistrationManager applyDefaults" 
      />
  <implements
      interface="zope.app.interfaces.annotation.IAttributeAnnotatable" />
</content>

<adapter
    for="zope.app.interfaces.services.pagefolder.IPageFolder"
    provides="zope.app.interfaces.context.IZopeContextWrapper"
    factory="zope.app.services.pagefolder.PageFolderContextDecorator"
    />

<adapter
  for="zope.app.interfaces.services.pagefolder.IPageFolder"
  provides="zope.app.interfaces.file.IFileFactory"
  factory=".zpt.ZPTFactory"
  permission="zope.ManageServices"
  />

<adapter 
  for="zope.app.interfaces.services.folder.ISiteManagementFolder"
  provides="zope.app.interfaces.file.IDirectoryFactory"
  factory=".pagefolder.PageFolderFactory"
  permission="zope.ManageContent"
  />

<fssync:adapter
    class=".pagefolder.PageFolder"
    factory=".pagefolder.PageFolderAdapter"
    />

</zopeConfigure>