[Zope-Checkins] CVS: Zope3 - contentObjects.zcml:1.1.2.1
Stephan Richter
srichter@cbu.edu
Mon, 21 Jan 2002 12:46:25 -0500
Update of /cvs-repository/Zope3
In directory cvs.zope.org:/tmp/cvs-serv24250
Added Files:
Tag: Zope-3x-branch
contentObjects.zcml
Log Message:
- Oh yeah, you will need this file to register all the new nice objects.
Use the "include" directive in your site.zcml to activate the content
objects: <include file="contentObejcts.zcml" />
=== Added File Zope3/contentObjects.zcml ===
<zopeConfigure
xmlns='http://namespaces.zope.org/zope'
xmlns:security='http://namespaces.zope.org/security'
xmlns:browser='http://namespaces.zope.org/browser'
xmlns:zmi='http://namespaces.zope.org/zmi'
>
<!-- NaiveFile Directives -->
<security:permission permission_id="Zope.AddNaiveFiles" title="Add Naive Files" />
<zmi:provideClass name="Zope.App.OFS.File.NaiveFile."
permission_id="Zope.AddNaiveFiles"
title="Naive File"
description="This is a simple file" />
<security:protectClass name="Zope.App.OFS.File.FileEdit."
permission_id="Zope.View" methods="index" />
<browser:defaultView name="view"
for="Zope.App.OFS.File.IFile.IFile."
factory="Zope.App.OFS.File.FileEdit." />
<security:protectClass name="Zope.App.OFS.File.NaiveFile."
permission_id="Zope.View" />
<!-- File Directives -->
<security:permission permission_id="Zope.AddFiles" title="Add Files" />
<zmi:provideClass name="Zope.App.OFS.File."
permission_id="Zope.AddFiles"
title="File"
description="A File" />
<security:protectClass name="Zope.App.OFS.File."
permission_id="Zope.View" />
<!-- Image Directives -->
<security:permission permission_id="Zope.AddImages" title="Add Images" />
<zmi:provideClass name="Zope.App.OFS.Image."
permission_id="Zope.AddImages"
title="Image"
description="An Image" />
<security:protectClass name="Zope.App.OFS.Image.ImageData."
permission_id="Zope.View" methods="index, tag" />
<security:protectClass name="Zope.App.OFS.Image.ImageEdit."
permission_id="Zope.View" methods="index, editAction" />
<browser:defaultView name="data"
for="Zope.App.OFS.Image.Image.IImage."
factory="Zope.App.OFS.Image.ImageData." />
<browser:view name="edit"
for="Zope.App.OFS.Image.Image.IImage."
factory="Zope.App.OFS.Image.ImageEdit." />
<security:protectClass name="Zope.App.OFS.Image."
permission_id="Zope.View" />
<!-- ZPT Page Directives -->
<security:permission permission_id="Zope.AddZPTPages" title="Add ZPT Pages" />
<zmi:provideClass name="Zope.App.OFS.ZPTPage."
permission_id="Zope.AddZPTPages"
title="ZPT Page"
description="A simple, content-based Page Template" />
<security:protectClass name="Zope.App.OFS.ZPTPage.ZPTPageEval."
permission_id="Zope.View" methods="index" />
<security:protectClass name="Zope.App.OFS.ZPTPage.ZPTPageEdit."
permission_id="Zope.View" methods="index, editAction" />
<browser:defaultView name="eval"
for="Zope.App.OFS.ZPTPage.ZPTPage.IZPTPage."
factory="Zope.App.OFS.ZPTPage.ZPTPageEval." />
<browser:view name="edit"
for="Zope.App.OFS.ZPTPage.ZPTPage.IZPTPage."
factory="Zope.App.OFS.ZPTPage.ZPTPageEdit." />
<security:protectClass name="Zope.App.OFS.ZPTPage."
permission_id="Zope.View" />
</zopeConfigure>