# HG changeset patch # User Adrien Di Mascio <Adrien.DiMascio@logilab.fr> # Date 1248421888 -7200 # Fri Jul 24 09:51:28 2009 +0200 # Node ID 299e02a0f03f58160ccce5f7d239de5b2aee5fd6 # Parent e30d5c143b77e7b3614c96d2c65b406624d2a9a0 add explicit imports in schema declaration diff --git a/schema.py b/schema.py --- a/schema.py +++ b/schema.py @@ -3,14 +3,16 @@ :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') - #comments = SubjectRelation('*') - class comments(MetaUserRelationType): permissions = {