--- a/cubicweb/server/test/data-migractions/cubicweb_fakeemail/schema.py Wed Dec 18 05:39:03 2019 +0100
+++ b/cubicweb/server/test/data-migractions/cubicweb_fakeemail/schema.py Thu Dec 19 15:13:10 2019 +0100
@@ -42,7 +42,7 @@
'add': ('managers', ERQLExpression('E parts X, U has_update_permission E'),),
'delete': ('managers', ERQLExpression('E parts X, U has_update_permission E')),
'update': ('managers', 'owners',),
- }
+ }
content = String(fulltextindexed=True)
content_format = String(required=True, maxsize=50)
@@ -56,28 +56,34 @@
see_also = SubjectRelation('EmailThread')
forked_from = SubjectRelation('EmailThread', cardinality='?*')
+
class parts(RelationType):
""" """
fulltext_container = 'subject'
+
class sender(RelationType):
""" """
inlined = True
+
class in_thread(RelationType):
""" """
inlined = True
+
class reply_to(RelationType):
""" """
inlined = True
+
class generated_by(RelationType):
"""mark an entity as generated from an email"""
cardinality = '?*'
subject = ('TrInfo',)
object = 'Email'
+
# if comment is installed
if 'Comment' in context.defined:
class comment_generated_by(RelationDefinition):