schemas/base.py
changeset 59 9660bd221553
parent 6 29ab115b9fcb
child 627 36ade1128af7
child 1281 0cec611248be
equal deleted inserted replaced
58:c7c22b210372 59:9660bd221553
   306     
   306     
   307 class see_also(RelationType):
   307 class see_also(RelationType):
   308     """generic relation to link one entity to another"""
   308     """generic relation to link one entity to another"""
   309     symetric = True
   309     symetric = True
   310 
   310 
   311 class ECache(EntityType):
   311 class ECache(MetaEntityType):
       
   312     """a simple cache entity characterized by a name and
       
   313     a validity date.
       
   314 
       
   315     The target application is responsible for updating timestamp
       
   316     when necessary to invalidate the cache (typically in hooks).
       
   317 
       
   318     Also, checkout the AppRsetObject.get_cache() method.
       
   319     """
   312     permissions = {
   320     permissions = {
   313         'read':   ('managers', 'users', 'guests'),
   321         'read':   ('managers', 'users', 'guests'),
   314         'add':    ('managers',),
   322         'add':    ('managers',),
   315         'update': ('managers', 'users',),
   323         'update': ('managers', 'users',),
   316         'delete': ('managers',),
   324         'delete': ('managers',),