[Zope3-checkins] CVS: Zope3/src/zope/app/dublincore -
configure.zcml:1.11
Jim Fulton
jim at zope.com
Thu Mar 4 17:42:06 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/dublincore
In directory cvs.zope.org:/tmp/cvs-serv4155/src/zope/app/dublincore
Modified Files:
configure.zcml
Log Message:
Added missing security declarations. Decided to introduce a new
permission for dublin core data.
=== Zope3/src/zope/app/dublincore/configure.zcml 1.10 => 1.11 ===
--- Zope3/src/zope/app/dublincore/configure.zcml:1.10 Tue Mar 2 13:50:58 2004
+++ Zope3/src/zope/app/dublincore/configure.zcml Thu Mar 4 17:42:03 2004
@@ -3,6 +3,18 @@
xmlns:event="http://namespaces.zope.org/event"
xmlns:fssync="http://namespaces.zope.org/fssync">
+ <permission
+ id="zope.app.dublincore.view"
+ title="[zope.app.dublincore.view-permission]
+ View Dublin-Core Meta Data "
+ />
+
+ <permission
+ id="zope.app.dublincore.change"
+ title="[zope.app.dublincore.change-permission]
+ Change Dublin-Core Meta Data "
+ />
+
<adapter
factory=".annotatableadapter.ZDCAnnotatableAdapter"
provides="zope.app.dublincore.interfaces.IWriteZopeDublinCore"
@@ -11,10 +23,25 @@
<class class=".annotatableadapter.ZDCAnnotatableAdapter">
<require
- permission="zope.View"
- interface="zope.app.dublincore.interfaces.IZopeDublinCore"
+ permission="zope.app.dublincore.view"
+ interface=".interfaces.IZopeDublinCore"
+ />
+ <require
+ permission="zope.app.dublincore.change"
+ interface=".interfaces.IWritableGeneralDublinCore"
/>
</class>
+
+ <content class=".annotatableadapter.ZDCAnnotationData">
+ <require
+ permission="zope.app.dublincore.view"
+ interface="zope.interface.common.mapping.IReadMapping"
+ />
+ <require
+ permission="zope.app.dublincore.change"
+ interface="zope.interface.common.mapping.IWriteMapping"
+ />
+ </content>
<event:subscribe
subscriber=".timeannotators.ModifiedAnnotator"
More information about the Zope3-Checkins
mailing list