Skip to content
Snippets Groups Projects
Commit 299e02a0f03f authored by Adrien Di Mascio's avatar Adrien Di Mascio
Browse files

add explicit imports in schema declaration

parent e30d5c143b77
No related branches found
No related tags found
No related merge requests found
......@@ -3,9 +3,13 @@
:copyright: 2003-2009 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
"""
from yams.buildobjs import (MetaUserEntityType, MetaUserRelationType,
SubjectRelation, RichString)
from cubicweb.schema import RRQLExpression
class Comment(MetaUserEntityType):
"""a comment is a reply about another entity"""
content = RichString(required=True, fulltextindexed=True)
comments = SubjectRelation('Comment', cardinality='1*', composite='object')
......@@ -6,11 +10,9 @@
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 = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment