schemas/Card.py
branchtls-sprint
changeset 624 258e5692ae06
parent 0 b97547f5f1fa
--- a/schemas/Card.py	Fri Feb 13 16:34:05 2009 +0100
+++ b/schemas/Card.py	Mon Feb 16 12:33:14 2009 +0100
@@ -1,4 +1,4 @@
-from cubicweb.schema import format_constraint
+# from cubicweb.schema import format_constraint
 
 class Card(EntityType):
     """a card is a textual content used as documentation, reference, procedure reminder"""
@@ -12,7 +12,5 @@
     title    = String(required=True, fulltextindexed=True, maxsize=256)
     synopsis = String(fulltextindexed=True, maxsize=512,
                       description=_("an abstract for this card"))
-    content_format = String(meta=True, internationalizable=True, maxsize=50,
-                            default='text/rest', constraints=[format_constraint])
-    content  = String(fulltextindexed=True)
+    content = RichString(fulltextindexed=True, default_format='text/rest')
     wikiid = String(maxsize=64, indexed=True)