server/test/data/schema.py
changeset 10303 593e63a68429
parent 10285 d14db30b90d6
child 10446 1e6655cff5ab
--- a/server/test/data/schema.py	Wed Mar 25 08:21:00 2015 +0100
+++ b/server/test/data/schema.py	Wed Mar 25 08:43:00 2015 +0100
@@ -240,6 +240,14 @@
     subject = 'Tag'
     object = ('CWUser', 'CWGroup', 'State', 'Note', 'Card', 'Affaire')
 
+class Folder(EntityType):
+    """folders are used to classify entities. They may be defined as a tree.
+    """
+    name = String(required=True, indexed=True, internationalizable=True,
+                  maxsize=64)
+    description = RichString(fulltextindexed=True)
+    filed_under = SubjectRelation('Folder', description=_('parent folder'))
+
 class filed_under(RelationDefinition):
     subject = ('Note', 'Affaire')
     object = 'Folder'