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

Tres Seaver tseaver@zope.com
Thu, 27 Mar 2003 07:10:52 -0500


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

Modified Files:
	configure.zcml 
Log Message:


  - Use permissions from the parent package's configuration.

  - Normalize directive attribute layout.

  - Remove tabs.


=== Products3/NewsSite/NewsItem/configure.zcml 1.5 => 1.6 ===
--- Products3/NewsSite/NewsItem/configure.zcml:1.5	Wed Mar 26 09:24:53 2003
+++ Products3/NewsSite/NewsItem/configure.zcml	Thu Mar 27 07:10:51 2003
@@ -2,50 +2,60 @@
     xmlns='http://namespaces.zope.org/zope'
     xmlns:browser='http://namespaces.zope.org/browser'>
 
-<permission
-    id="zopeproducts.NewsSite.NewsItem.ManageNewsItems" 
-    title="Manage News Items"
-    />
-
-<content class=".news.NewsItem">
+<content
+    class=".news.NewsItem"
+    >
   <implements
      interface="zope.app.interfaces.annotation.IAttributeAnnotatable" 
      />
-    <factory
+  <factory
       id="zopeproducts.NewsSite.NewsItem"
-      permission="zopeproducts.NewsSite.NewsItem.ManageNewsItems" />
+      permission="zopeproducts.NewsSite.CreateNewsItems"
+      />
   <require
       permission="zope.View"
-      interface=".interfaces.INewsItem" />
+      interface=".interfaces.INewsItem"
+      />
   <require
-      permission="zopeproducts.NewsSite.NewsItem.ManageNewsItems"
-      set_schema=".interfaces.INewsItem" />
+      permission="zopeproducts.NewsSite.ModifyNewsItems"
+      set_schema=".interfaces.INewsItem"
+      />
 </content>
 
 <browser:addform
+    name="add_news.html"
     schema=".interfaces.INewsItem"
     label="Add News Item"
     content_factory=".news.NewsItem"
     arguments="newsbody"
-    name="AddNewsItem"
-    menu="add_news" title="News Item"
-    permission="zopeproducts.NewsSite.NewsItem.ManageNewsItems" />
-    
+    permission="zopeproducts.NewsSite.CreateNewsItems"
+    menu="add_news"
+    title="News Item"
+    />
+
 <browser:editform
+    name="edit.html"
     schema=".interfaces.INewsItem"
     label="Change News Item"
-    name="edit.html"
-    menu="zmi_views" title="Edit"
-    permission="zopeproducts.NewsSite.NewsItem.ManageNewsItems" />
-    
+    permission="zopeproducts.NewsSite.ModifyNewsItems"
+    menu="zmi_views"
+    title="Edit"
+    />
+
 <browser:page
-    for=".interfaces.INewsItem"
     name="index.html" 
-    template="info.pt"
-    menu="zmi_views" title="View"
+    for=".interfaces.INewsItem"
     class=".browser.NewsItemInfoView"
-    permission="zope.View" />
+    template="info.pt"
+    permission="zope.View"
+    menu="zmi_views"
+    title="View"
+    />
 
-<browser:icon name="zmi_icon" for=".interfaces.INewsItem" file="newsitem_icon.gif" />
+<browser:icon
+    name="zmi_icon"
+    for=".interfaces.INewsItem"
+    file="newsitem_icon.gif"
+    />
 
 </zopeConfigure>