[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/Content/Folder/Views/Browser - configure.zcml:1.5 contents.pt:1.8
Jim Fulton
jim@zope.com
Thu, 20 Jun 2002 16:00:53 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Content/Folder/Views/Browser
In directory cvs.zope.org:/tmp/cvs-serv19918/lib/python/Zope/App/OFS/Content/Folder/Views/Browser
Modified Files:
configure.zcml contents.pt
Log Message:
Gary and Jim implemented most of:
http://dev.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/AddMenuProposalAndEndOfZmiNamespace
A lot of clean up is needed, including:
- Implementation additional add menus, for example for services.
- Ripping out old unused implementation.
=== Zope3/lib/python/Zope/App/OFS/Content/Folder/Views/Browser/configure.zcml 1.4 => 1.5 ===
file="Folder_icon.gif" />
-
+ <browser:menuItems menu="zmi_views" for=".Folder.IFolder.">
+ <browser:menuItem title="Contents" action="@@index.html"/>
+ <browser:menuItem title="Role Permissions"
+ action="@@AllRolePermissions.html"/>
+ </browser:menuItems>
+
+ <browser:menuItem menu="add_content" for="Zope.App.OFS.Container.IAdding."
+ title="Folder" action="Folder"
+ />
+
<browser:defaultView
for=".Folder.IFolder."
name="index.html" />
@@ -27,20 +36,6 @@
/>
</browser:view>
- <browser:view
- for=".Folder.IFolder."
- permission="Zope.ManageContent"
- factory=".Views.Browser.FolderAdder." >
-
- <browser:page name="addForm.html"
- attribute="index"
- />
- <browser:page name="add.html"
- attribute="action"
- />
- </browser:view>
-
-
<!-- Loaded Folder View Directives -->
<browser:defaultView
@@ -75,12 +70,6 @@
factory=".LoadedFolderFields.LimitField.
Zope.App.Formulator.Widgets.Browser.TextWidget." />
- <browser:menuItems menu="zmi_views" for=".Folder.IFolder.">
- <browser:menuItem title="Contents" action="@@index.html"/>
- <browser:menuItem title="Role Permissions"
- action="@@AllRolePermissions.html"/>
- </browser:menuItems>
-
<browser:menuItems menu="zmi_views"
for="Zope.App.OFS.Container.IContainerLimit.">
<browser:menuItem title="Limit" action="@@FolderLimitEditForm.html"/>
@@ -91,5 +80,10 @@
<browser:menuItem title="Role Permissions"
action="@@AllRolePermissions.html"/>
</browser:menuItems>
+
+ <browser:menuItem menu="add_content" for="Zope.App.OFS.Container.IAdding."
+ title="Loaded Folder" action="LoadedFolder"
+ description="A Folder having all the goodies."
+ />
</zopeConfigure>
=== Zope3/lib/python/Zope/App/OFS/Content/Folder/Views/Browser/contents.pt 1.7 => 1.8 ===
<div metal:fill-slot="body">
-<div>Folder Contents <a href="@@addForm.html"> Add... </a> </div>
+<div>Folder Contents <a href="@@create"> Add... </a> </div>
<form name="folderContentsForm" method="get" action="@@index.html"
tal:define="folder_contents view/listContentInfo">