[Zope3-checkins] CVS: Zope3/src/zope/app/cache/browser - cacheable.py:1.2

Jim Fulton jim at zope.com
Sat Mar 6 11:50:48 EST 2004


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

Modified Files:
	cacheable.py 
Log Message:
Converted most getAdapter calls to use interface calls instead.


=== Zope3/src/zope/app/cache/browser/cacheable.py 1.1 => 1.2 ===
--- Zope3/src/zope/app/cache/browser/cacheable.py:1.1	Mon Mar  1 05:57:35 2004
+++ Zope3/src/zope/app/cache/browser/cacheable.py	Sat Mar  6 11:50:17 2004
@@ -33,7 +33,7 @@
 
     def __init__(self, *args):
         super(CacheableView, self).__init__(*args)
-        self.cacheable = zapi.getAdapter(self.context, ICacheable)
+        self.cacheable = ICacheable(self.context)
         setUpEditWidgets(self, ICacheable, self.cacheable)
 
     def current_cache_id(self):




More information about the Zope3-Checkins mailing list