[Zope-CVS] CVS: Products/PluggableAuthService/doc - caching.stx:1.1.2.4

Jens Vagelpohl jens at dataflake.org
Mon Nov 8 02:14:09 EST 2004


Update of /cvs-repository/Products/PluggableAuthService/doc
In directory cvs.zope.org:/tmp/cvs-serv5213/doc

Modified Files:
      Tag: jens-implement_caching_branch
	caching.stx 
Log Message:
- remove the (empty) PASCacheable class and replace it with 
  OFS.Cache.Cacheable everywhere


=== Products/PluggableAuthService/doc/caching.stx 1.1.2.3 => 1.1.2.4 ===
--- Products/PluggableAuthService/doc/caching.stx:1.1.2.3	Sat Nov  6 07:24:28 2004
+++ Products/PluggableAuthService/doc/caching.stx	Mon Nov  8 02:13:38 2004
@@ -40,7 +40,7 @@
     these records where necessary. In a nutshell, these are the steps needed
     to enable cacheability at the plugin level:
 
-    o Add the PASCacheable mix-in class to the list of classes your plugin
+    o Add the Cacheable mix-in class to the list of classes your plugin
       subclasses from
 
     o Determine which method calls should have their return values cached, 
@@ -57,11 +57,11 @@
 
     A little illustration using code snippets::
 
+      from OFS.Cache import Cacheable
       from Products.PluggableAuthService.plugins.BasePlugin import BasePlugin
-      from Products.PluggableAuthService.PASCache import PASCacheable
       from Products.PluggableAuthService.utils import createViewName
 
-      class MyPlugin(BasePlugin, PASCacheable):
+      class MyPlugin(BasePlugin, Cacheable):
 
           def retrieveData(self, key):
               """ Get data for the given key """



More information about the Zope-CVS mailing list