ECache should be a meta entity
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
Thu, 13 Nov 2008 11:35:29 +0100
changeset 59 9660bd221553
parent 58 c7c22b210372
child 60 dc90556488d8
ECache should be a meta entity
schemas/base.py
--- 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',),