[Zope3-checkins] CVS: Products3/NewsSite/NewsItem - configure.zcml:1.4

Tres Seaver tseaver@zope.com
Wed, 26 Mar 2003 07:14:50 -0500


Update of /cvs-repository/Products3/NewsSite/NewsItem
In directory cvs.zope.org:/tmp/cvs-serv32719/NewsItem

Modified Files:
	configure.zcml 
Log Message:


  Make NewsItems addable only from the NewsSite folder:

  - Define a new menu, 'add_news'.

  - Register NewsItem's add form into that menu.

  - Derive a custom IAdding implementation for NewsSite, which overrides
    only the menu_id.

  - Register the custom IAdding for INewsSite.


=== Products3/NewsSite/NewsItem/configure.zcml 1.3 => 1.4 ===
--- Products3/NewsSite/NewsItem/configure.zcml:1.3	Tue Mar 25 09:36:05 2003
+++ Products3/NewsSite/NewsItem/configure.zcml	Wed Mar 26 07:14:50 2003
@@ -27,7 +27,7 @@
     content_factory=".news.NewsItem"
     arguments="newsbody"
     name="AddNewsItem"
-    menu="add_content" title="News Item"
+    menu="add_news" title="News Item"
     permission="zopeproducts.NewsSite.NewsItem.ManageNewsItems" />
     
 <browser:editform