schemas/base.py
changeset 6 29ab115b9fcb
parent 0 b97547f5f1fa
child 59 9660bd221553
equal deleted inserted replaced
0:b97547f5f1fa 6:29ab115b9fcb
   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(EntityType):
       
   312     permissions = {
       
   313         'read':   ('managers', 'users', 'guests'),
       
   314         'add':    ('managers',),
       
   315         'update': ('managers', 'users',),
       
   316         'delete': ('managers',),
       
   317         }
       
   318 
   312     name = String(required=True, unique=True, indexed=True, 
   319     name = String(required=True, unique=True, indexed=True, 
   313                   description=_('name of the cache'))
   320                   description=_('name of the cache'))
   314     timestamp = Datetime(default='NOW')
   321     timestamp = Datetime(default='NOW')