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

Tres Seaver tseaver@zope.com
Tue, 1 Apr 2003 10:56:49 -0500


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

Modified Files:
	configure.zcml 
Log Message:


 - Expose "Login" action.

 - Use add form for NewsItems in "member" view.


=== Products3/NewsSite/NewsItem/configure.zcml 1.12 => 1.13 ===
--- Products3/NewsSite/NewsItem/configure.zcml:1.12	Thu Mar 27 13:06:17 2003
+++ Products3/NewsSite/NewsItem/configure.zcml	Tue Apr  1 10:56:48 2003
@@ -42,6 +42,20 @@
     title="News Item"
     template="../addform.pt"
     />
+
+<browser:addform
+    name="add_news.html"
+    schema=".interfaces.INewsItemForm"
+    for="zopeproducts.NewsSite.interfaces.INewsSite"
+    label="Add News Item"
+    content_factory=".news.NewsItem"
+    permission="zopeproducts.NewsSite.CreateNewsItems"
+    fields="title teaser body effective expires"
+    menu="newssite_actions"
+    title="News Item"
+    template="../addform.pt"
+    class="zopeproducts.NewsSite.browser.BaseNewsSiteView"
+    />
     
 <browser:editform
     schema=".interfaces.INewsItemForm"