diff --git a/schema.py b/schema.py index cbe83758dbfde19dbba2d42827d89ed6ab53ee5a_c2NoZW1hLnB5..e24c654e1c7def529d848c2695cba1c45a49829d_c2NoZW1hLnB5 100644 --- a/schema.py +++ b/schema.py @@ -1,5 +1,5 @@ """ :organization: Logilab -:copyright: 2003-2008 LOGILAB S.A. (Paris, FRANCE), all rights reserved. +:copyright: 2003-2009 LOGILAB S.A. (Paris, FRANCE), all rights reserved. :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr """ @@ -4,6 +4,5 @@ :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr """ -from cubicweb.schema import format_constraint class Comment(MetaUserEntityType): """a comment is a reply about another entity""" @@ -7,10 +6,8 @@ class Comment(MetaUserEntityType): """a comment is a reply about another entity""" - content_format = String(meta=True, internationalizable=True, maxsize=50, - default='text/rest', constraints=[format_constraint]) - content = String(required=True, fulltextindexed=True) - + content = RichString(required=True, fulltextindexed=True) + comments = SubjectRelation('Comment', cardinality='1*', composite='object') #comments = SubjectRelation('*')