common/test/data/schema/Note.py
changeset 0 b97547f5f1fa
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/common/test/data/schema/Note.py	Wed Nov 05 15:52:50 2008 +0100
@@ -0,0 +1,16 @@
+from cubicweb.schema import format_constraint
+
+class AnotherNote(EntityType):
+    descr_format = String(meta=True, internationalizable=True,
+                                default='text/rest', constraints=[format_constraint])
+    descr = String(fulltextindexed=True,
+                   description=_('more detailed description'))
+    descr2_format = String(meta=True, internationalizable=True,
+                                default='text/rest', constraints=[format_constraint])
+    descr2 = String(fulltextindexed=True,
+                    description=_('more detailed description'))
+    
+
+class SubNote(AnotherNote):
+    __specializes_schema__ = True
+    descr3 = String()