[Zope3-checkins] CVS: Zope3/src/zope/app/browser/cache - configure.zcml:1.14

Anthony Baxter anthony at interlink.com.au
Sun Feb 8 20:18:16 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/browser/cache
In directory cvs.zope.org:/tmp/cvs-serv7204/src/zope/app/browser/cache

Modified Files:
	configure.zcml 
Log Message:
menuItem is dead. long live addMenuItem


=== Zope3/src/zope/app/browser/cache/configure.zcml 1.13 => 1.14 ===
--- Zope3/src/zope/app/browser/cache/configure.zcml:1.13	Fri Aug 22 16:33:01 2003
+++ Zope3/src/zope/app/browser/cache/configure.zcml	Sun Feb  8 20:18:15 2004
@@ -2,20 +2,12 @@
    xmlns:zope="http://namespaces.zope.org/zope"
    xmlns="http://namespaces.zope.org/browser">
 
-
-  <!-- Menu entry for "add cache" menu -->
-  <menuItem
-      menu="add_cache"
-      for="zope.app.interfaces.container.IAdding"
-      title="RAM Cache"
-      action="zope.caching.RAMCache" />
-
-  <!-- Menu entry for "add utility" menu -->
-  <menuItem
-      menu="add_utility"
-      for="zope.app.interfaces.container.IAdding"
-      title="RAM Cache"
-      action="zope.caching.RAMCache" />
+  <addMenuItem
+    title="RAM Cache"
+    description="A RAM cache is a volatile (in memory) cache for speeding up things"
+    class="zope.app.cache.ram.RAMCache"
+    permission="zope.ManageServices"
+  />
 
   <pages
       for="zope.app.interfaces.cache.ram.IRAMCache"
@@ -38,4 +30,4 @@
     <page name="InvalidateCache.html" attribute="invalidate" />
   </pages>
 
-</zope:configure>
\ No newline at end of file
+</zope:configure>




More information about the Zope3-Checkins mailing list