[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces/cache - cache.py:1.3

Steve Alexander steve@cat-box.net
Mon, 3 Feb 2003 10:59:45 -0500


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

Modified Files:
	cache.py 
Log Message:
Large event service reimplementation.


=== Zope3/src/zope/app/interfaces/cache/cache.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/interfaces/cache/cache.py:1.2	Wed Dec 25 09:12:58 2002
+++ Zope3/src/zope/app/interfaces/cache/cache.py	Mon Feb  3 10:59:13 2003
@@ -20,12 +20,14 @@
 from zope.component.exceptions import ComponentLookupError
 from zope.proxy.context import ContextProperty
 from zope.schema import TextLine
+from zope.app.interfaces.event import ISubscriber
 
 class CacheName(TextLine):
     """Cache Name"""
 
     def __allowed(self):
-        """Note that this method works only if the Field is context wrapped."""
+        """Note that this method works only if the Field is context wrapped.
+        """
         try:
             caching_service = getService(self.context, "Caching")
         except ComponentLookupError:
@@ -59,10 +61,11 @@
         """Return a cache object by name or default."""
 
     def getAvailableCaches():
-        """Returns a list of names of cache objects known to this caching service."""
+        """Returns a list of names of cache objects known to this caching
+        service."""
 
 
-class ICache(Interface):
+class ICache(ISubscriber):
     """Interface for caches."""
 
     def invalidate(ob, key=None):