Commits

Anonymous committed b0c237e

backport comments from sytweb

Comments (0)

Files changed (2)

 
 __depends__ =  {'cubicweb': '>= 3.19.0',
                 'cubicweb-file': '>= 1.9.0',
+                'cubicweb-comment': None,
                 'cubicweb-fancyurls': None,
                 }
 __recommends__ = {}
     name = String(maxsize=128, required=True, fulltextindexed=True, unique=True)
     date = Date()
 
+
 class in_album(RelationDefinition):
     subject = 'File'
     object = 'Album'
     cardinality = '?*'
 
 
+class comments(RelationDefinition):
+    subject = 'Comment'
+    object = 'File'
+    cardinality = '1*'
+    composite = 'object'
+
+
 # cool urls ####################################################################
 
 class entity_url_of(RelationDefinition):