# HG changeset patch # User Adrien Di Mascio # Date 1226572529 -3600 # Node ID 9660bd221553fa11bb04b24c5bbb366d738a13f0 # Parent c7c22b2103729f70ae37ece498aa9c5a385ff6c2 ECache should be a meta entity diff -r c7c22b210372 -r 9660bd221553 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',),