[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/Container/Views/Browser - Adding.py:1.4 configure.zcml:1.3 main.pt:1.6 Adder.py:NONE

Jim Fulton jim@zope.com
Sun, 23 Jun 2002 13:04:11 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Container/Views/Browser
In directory cvs.zope.org:/tmp/cvs-serv11667/lib/python/Zope/App/OFS/Container/Views/Browser

Modified Files:
	Adding.py configure.zcml main.pt 
Removed Files:
	Adder.py 
Log Message:
Finished implementing
http://dev.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/AddMenuProposalAndEndOfZmiNamespace

Updated the service manager to use a menu.

Ripped out the old adder registry code.



=== Zope3/lib/python/Zope/App/OFS/Container/Views/Browser/Adding.py 1.3 => 1.4 ===
 from Zope.ComponentArchitecture \
      import getView, getService, createObject, queryFactory, queryView
+from Zope.App.PageTemplate import ViewPageTemplateFile
 
 class Adding(BrowserView):
 
@@ -81,6 +82,8 @@
     
     #
     ############################################################
+
+    index = ViewPageTemplateFile("add.pt")
 
     def addingInfo(self):
         """Return menu data"""


=== Zope3/lib/python/Zope/App/OFS/Container/Views/Browser/configure.zcml 1.2 => 1.3 ===
    <browser:view
        for="Zope.App.OFS.Container.IContentContainer."
-       name="create"  
+       name="+"  
        factory=".Adding."
        permission="Zope.ManageContent"
        >
-       <browser:page name="index.html" template="add.pt" />
+       <browser:page name="index.html"  attribute="index" />
        <browser:page name="action.html" attribute="action" />
    </browser:view>
 


=== Zope3/lib/python/Zope/App/OFS/Container/Views/Browser/main.pt 1.5 => 1.6 ===
   <table class="ContentListing">
   
-    <caption>Folder Contents <a href="@@create"> Add... </a> </caption>
+    <caption>Folder Contents <a href="+"> Add... </a> </caption>
   
     <tbody>
   

=== Removed File Zope3/lib/python/Zope/App/OFS/Container/Views/Browser/Adder.py ===