[Zope3-checkins] CVS: Zope3/src/zope/app/browser/utilities - configure.zcml:1.11

Stephan Richter srichter at cosmos.phy.tufts.edu
Tue Mar 2 09:26:06 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/browser/utilities
In directory cvs.zope.org:/tmp/cvs-serv22121/src/zope/app/browser/utilities

Modified Files:
	configure.zcml 
Log Message:


Created an add-menu directive, so that the content type is only available in
containers that say they can have it.




=== Zope3/src/zope/app/browser/utilities/configure.zcml 1.10 => 1.11 ===
--- Zope3/src/zope/app/browser/utilities/configure.zcml:1.10	Mon Feb  9 00:35:21 2004
+++ Zope3/src/zope/app/browser/utilities/configure.zcml	Tue Mar  2 09:25:36 2004
@@ -226,13 +226,20 @@
   <!-- Directives to test the Content Component Instance -->
   <addform
       label="New Content Component Instance"
-      name="AddDirectContentComponent"
+      name="AddContentComponentInstance.html"
       schema="zope.app.interfaces.utilities.content.IContentComponentInstance"
       permission="zope.ManageContent"
       content_factory="zope.app.utilities.content.ContentComponentInstance"
       arguments="__name__ __schema__"
-      fields="__name__ __schema__"
-      menu="add_content" title="Schema-based Content"/>
+      fields="__name__ __schema__" />
+
+  <addMenuItem
+      class="zope.app.utilities.content.ContentComponentInstance"
+      title="Schema-based Content"
+      description="Schema-based Content Component Instance"
+      permission="zope.ManageContent"
+      view="AddContentComponentInstance.html"
+      />
 
   <zope:adapter
       factory=".traversal.SchemaFieldTraversable"




More information about the Zope3-Checkins mailing list