[Zope3-checkins] CVS: Zope3/src/zope/app/services - cache.py:1.4

Viktorija Zaksiene ryzaja@codeworks.lt
Thu, 23 Jan 2003 04:53:30 -0500


Update of /cvs-repository/Zope3/src/zope/app/services
In directory cvs.zope.org:/tmp/cvs-serv17263/src/zope/app/services

Modified Files:
	cache.py 
Log Message:
Added getInterface method to caches.
Fixed cachable's to use the right template.


=== Zope3/src/zope/app/services/cache.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/services/cache.py:1.3	Mon Dec 30 09:03:16 2002
+++ Zope3/src/zope/app/services/cache.py	Thu Jan 23 04:53:28 2003
@@ -96,6 +96,7 @@
 from zope.component import getService
 from zope.app.interfaces.event import IObjectModifiedEvent
 from zope.proxy.context import ContextMethod
+from zope.app.interfaces.cache.cache import ICache
 
 class CacheConfiguration(NamedComponentConfiguration):
 
@@ -123,3 +124,6 @@
         service.unsubscribe(cache, IObjectModifiedEvent)
         cache.invalidateAll()
     deactivated = ContextMethod(deactivated)
+
+    def getInterface(self):
+        return ICache