schemas/base.py
changeset 59 9660bd221553
parent 6 29ab115b9fcb
child 627 36ade1128af7
child 1281 0cec611248be
--- a/schemas/base.py	Thu Nov 13 11:32:25 2008 +0100
+++ b/schemas/base.py	Thu Nov 13 11:35:29 2008 +0100
@@ -308,7 +308,15 @@
     """generic relation to link one entity to another"""
     symetric = True
 
-class ECache(EntityType):
+class ECache(MetaEntityType):
+    """a simple cache entity characterized by a name and
+    a validity date.
+
+    The target application is responsible for updating timestamp
+    when necessary to invalidate the cache (typically in hooks).
+
+    Also, checkout the AppRsetObject.get_cache() method.
+    """
     permissions = {
         'read':   ('managers', 'users', 'guests'),
         'add':    ('managers',),