[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/ZMI/Browser/ZopeTop/www - widget_macros.pt:1.6

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


Update of /cvs-repository/Zope3/lib/python/Zope/App/ZMI/Browser/ZopeTop/www
In directory cvs.zope.org:/tmp/cvs-serv5764/lib/python/Zope/App/ZMI/Browser/ZopeTop/www

Modified Files:
	widget_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. 



=== Zope3/lib/python/Zope/App/ZMI/Browser/ZopeTop/www/widget_macros.pt 1.5 => 1.6 ===
--- Zope3/lib/python/Zope/App/ZMI/Browser/ZopeTop/www/widget_macros.pt:1.5	Thu Nov 21 14:57:39 2002
+++ Zope3/lib/python/Zope/App/ZMI/Browser/ZopeTop/www/widget_macros.pt	Fri Dec 20 18:00:26 2002
@@ -97,7 +97,7 @@
       </tr>
       </thead>
       <tbody>
-      <tr tal:repeat="view views/standard_macros/getZMIViews"> 
+      <tr tal:repeat="view context/@@view_get_menu/zmi_views"> 
 	<td colspan="2"> <a href="" 
 	  tal:attributes="href view/action">
 	  <span style="color: #E9A90F; font-size: 15px;