[Zope3-checkins] CVS: Zope3/src/zope/app/pythonpage - configure.zcml:1.3

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


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

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/pythonpage/configure.zcml 1.2 => 1.3 ===
--- Zope3/src/zope/app/pythonpage/configure.zcml:1.2	Tue Feb 24 11:50:28 2004
+++ Zope3/src/zope/app/pythonpage/configure.zcml	Tue Mar  2 09:25:36 2004
@@ -45,11 +45,18 @@
 
   <browser:addform
       label="Add Python Page"
-      name="AddPythonPage"
+      name="AddPythonPage.html"
       schema=".IPythonPage"
       content_factory=".PythonPage"
       permission="zope.ManageContent"
-      menu="add_content" title="Python Page"
+      />
+
+  <browser:addMenuItem
+      class=".PythonPage"
+      title="Python Page"
+      description="An Python Page"
+      permission="zope.ManageContent"
+      view="AddPythonPage.html"
       />
 
   <browser:editform




More information about the Zope3-Checkins mailing list