[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/index - configure.zcml:1.2
Steve Alexander
steve@cat-box.net
Thu, 5 Dec 2002 08:55:55 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/index
In directory cvs.zope.org:/tmp/cvs-serv3897/lib/python/Zope/App/index
Modified Files:
configure.zcml
Log Message:
configuration file for simple object to register newly-added objects
with the object hub
=== Zope3/lib/python/Zope/App/index/configure.zcml 1.1 => 1.2 ===
--- Zope3/lib/python/Zope/App/index/configure.zcml:1.1 Wed Dec 4 12:11:51 2002
+++ Zope3/lib/python/Zope/App/index/configure.zcml Thu Dec 5 08:55:54 2002
@@ -1,7 +1,38 @@
<zopeConfigure
xmlns="http://namespaces.zope.org/zope"
+ xmlns:browser='http://namespaces.zope.org/browser'
>
<include package=".text" />
+
+
+ <content class=".subscribers.Registration">
+ <require
+ permission="Zope.ManageServices"
+ interface=".subscribers.ISubscriptionControl"
+ />
+ <factory
+ id="Zope.App.index.subscribers.Registration"
+ permission="Zope.ManageServices"
+ />
+ </content>
+
+ <browser:menuItem
+ menu="add_component"
+ for="Zope.App.OFS.Container.IAdding."
+ action="Zope.App.index.subscribers.Registration"
+ title="Registration subscriber"
+ description="An event subscriber that registers content with the objecthub"
+ />
+
+ <browser:defaultView
+ for=".subscribers.ISubscriptionControl"
+ name="control.html" />
+
+ <browser:view
+ for=".subscribers.ISubscriptionControl"
+ permission="Zope.ManageServices"
+ name="control.html"
+ template="subscription_control.pt" />
</zopeConfigure>