From cfb0da7e7ca1da7ed78f32f5cb9fbc575aafcc8f Mon Sep 17 00:00:00 2001 From: Francesco Siddi Date: Wed, 18 Nov 2015 13:02:43 +0100 Subject: [PATCH] Introducing is_reply property for comments --- pillar/manage/node_types/comment.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/pillar/manage/node_types/comment.py b/pillar/manage/node_types/comment.py index 7116a8af..673c8d63 100644 --- a/pillar/manage/node_types/comment.py +++ b/pillar/manage/node_types/comment.py @@ -1,6 +1,6 @@ node_type_comment = { 'name': 'comment', - 'description': 'Comments for asset asset nodes, pages, etc.', + 'description': 'Comments for asset nodes, pages, etc.', 'dyn_schema': { # The actual comment content (initially Markdown format) 'content': { @@ -48,10 +48,8 @@ node_type_comment = { } } }, - 'confidence': { - 'type': 'float' - } - + 'confidence': {'type': 'float'}, + 'is_reply': {'type': 'boolean'} }, 'form_schema': { 'content': {}, @@ -59,10 +57,11 @@ node_type_comment = { 'rating_positive': {}, 'rating_negative': {}, 'ratings': {}, - 'confidence': {} + 'confidence': {}, + 'is_reply': {} }, 'parent': { - 'node_types': ['asset',] + 'node_types': ['asset', 'comment'] }, 'permissions': { # 'groups': [{