Newer
Older
:copyright: 2003-2009 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
"""
class Comment(MetaUserEntityType):
"""a comment is a reply about another entity"""
content = RichString(required=True, fulltextindexed=True)
comments = SubjectRelation('Comment', cardinality='1*', composite='object')
#comments = SubjectRelation('*')
class comments(MetaUserRelationType):
permissions = {
'read': ('managers', 'users', 'guests'),
'add': ('managers', 'users',),
'delete': ('managers', RRQLExpression('S owned_by U'),),
}
inlined = True
composite = 'object'
cardinality = '1*'