# HG changeset patch # User sylvain.thenault@logilab.fr # Date 1240495500 -7200 # Thu Apr 23 16:05:00 2009 +0200 # Branch tls-sprint # Node ID e24c654e1c7def529d848c2695cba1c45a49829d # Parent cbe83758dbfde19dbba2d42827d89ed6ab53ee5a use RichString diff --git a/schema.py b/schema.py --- a/schema.py +++ b/schema.py @@ -1,16 +1,13 @@ """ :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 """ -from cubicweb.schema import format_constraint 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('*')