[Zope3-checkins] CVS: ZopeProducts/RotterdamSprint - configure.zcml:1.19 template.pt:1.23 view_macros.pt:1.2

Jim Fulton jim@zope.com
Fri, 20 Dec 2002 18:00:55 -0500


Update of /cvs-repository/ZopeProducts/RotterdamSprint
In directory cvs.zope.org:/tmp/cvs-serv5764/lib/python/ZopeProducts/RotterdamSprint

Modified Files:
	configure.zcml template.pt view_macros.pt 
Log Message:

Refactored the way browser menus are made available to views.  

- Added a new view, view_get_menu, for accessing menus. 
  From zpt, do something like:

    tal:repeat="view context/@@view_get_menu/zmi_views"

- Changed existing templates to get the "zmi_views" menu this way.

- Added a new "zmi_actions" and incorporated it into the default skin.
  See "view_macros.pt".

- Ripped out the no-longer-needed ZMIViews utility. 



=== ZopeProducts/RotterdamSprint/configure.zcml 1.18 => 1.19 ===
--- ZopeProducts/RotterdamSprint/configure.zcml:1.18	Wed Dec 18 23:15:03 2002
+++ ZopeProducts/RotterdamSprint/configure.zcml	Fri Dec 20 18:00:24 2002
@@ -79,8 +79,9 @@
     for="Zope.App.OFS.Content.Folder.Folder.IFolder"
     permission="Zope.ManageContent"
     layer="rotterdam"
-    factory="Zope.App.OFS.Content.Folder.Views.Browser.FolderContents.">
-  <browser:page name="contents.html" attribute="contents" template="folder_contents.pt" />
+    factory="Zope.App.OFS.Container.Views.Browser.Contents.">
+  <browser:page name="contents.html"
+                 attribute="contents" template="folder_contents.pt" />
 
 </browser:view>
 


=== ZopeProducts/RotterdamSprint/template.pt 1.22 => 1.23 ===
--- ZopeProducts/RotterdamSprint/template.pt:1.22	Wed Dec 11 06:28:48 2002
+++ ZopeProducts/RotterdamSprint/template.pt	Fri Dec 20 18:00:24 2002
@@ -104,7 +104,7 @@
       <div class="itemViews"
            metal:define-macro="zmi_tabs">
 
-        <tal:block repeat="view views/standard_macros/getZMIViews">
+        <tal:block repeat="view context/@@view_get_menu/zmi_views">
 
           <a href="" 
             tal:attributes="href view/action;


=== ZopeProducts/RotterdamSprint/view_macros.pt 1.1 => 1.2 ===
--- ZopeProducts/RotterdamSprint/view_macros.pt:1.1	Wed Dec  4 14:30:45 2002
+++ ZopeProducts/RotterdamSprint/view_macros.pt	Fri Dec 20 18:00:24 2002
@@ -19,7 +19,7 @@
 <body>
 
   <table metal:define-macro="zmi_tabs"><tr>
-    <td tal:repeat="view views/standard_macros/getZMIViews">
+    <td tal:repeat="view context/@@view_get_menu/zmi_views">
     <a href="" tal:attributes="href view/action" tal:content="view/title">
 	label</a>
     <tal:block condition="not: repeat/view/end">'</tal:block>