[Zope3-checkins] CVS: Zope3/src/zope/app/browser/cache - cacheable.py:1.6 configure.zcml:1.7

Godefroid Chapelle gotcha@swing.be
Tue, 8 Apr 2003 17:43:45 -0400


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

Modified Files:
	cacheable.py configure.zcml 
Log Message:
- add Caching view menu item for IAnnotatable
- i18n



=== Zope3/src/zope/app/browser/cache/cacheable.py 1.5 => 1.6 ===
--- Zope3/src/zope/app/browser/cache/cacheable.py:1.5	Tue Apr  8 16:58:02 2003
+++ Zope3/src/zope/app/browser/cache/cacheable.py	Tue Apr  8 17:43:45 2003
@@ -30,9 +30,7 @@
 from zope.app.interfaces.form import WidgetInputError
 from zope.app.pagetemplate.viewpagetemplatefile import ViewPageTemplateFile
 
-from zope.i18n.messageid import MessageIDFactory
-
-_ = MessageIDFactory("zope")
+from zope.app.i18n import ZopeMessageIDFactory as _
 
 class CacheableView(BrowserView):
 


=== Zope3/src/zope/app/browser/cache/configure.zcml 1.6 => 1.7 ===
--- Zope3/src/zope/app/browser/cache/configure.zcml:1.6	Mon Mar 24 09:58:30 2003
+++ Zope3/src/zope/app/browser/cache/configure.zcml	Tue Apr  8 17:43:45 2003
@@ -26,12 +26,16 @@
     <browser:menuItem title="Statistics" action="stats.html"/>
   </browser:menuItems>
 
-  <browser:pages for="zope.app.interfaces.annotation.IAnnotatable"
-                permission="zope.ManageBindings"
-                class="zope.app.browser.cache.cacheable.CacheableView">
+  <browser:pages 
+      for="zope.app.interfaces.annotation.IAnnotatable"
+      permission="zope.ManageBindings"
+      class="zope.app.browser.cache.cacheable.CacheableView"
+      >
 
     <browser:page name="Caching.html"
-                  attribute="form" />
+                  attribute="form" 
+                  menu="zmi_views" title="Caching"
+                  />
     <browser:page name="ChangeCaching.html"
                   attribute="action" />
     <browser:page name="InvalidateCache.html"