From f4ef811fae06741706c48e3d8e4f946cc776009d Mon Sep 17 00:00:00 2001 From: Francesco Siddi Date: Mon, 30 Nov 2015 19:23:33 +0100 Subject: [PATCH] Introducing tags and categories node_type asset --- pillar/manage/node_types/asset.py | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/pillar/manage/node_types/asset.py b/pillar/manage/node_types/asset.py index 473e5fa0..50266de9 100644 --- a/pillar/manage/node_types/asset.py +++ b/pillar/manage/node_types/asset.py @@ -49,6 +49,18 @@ node_type_asset = { } } } + }, + # Tags for search + 'tags': { + 'type': 'list', + 'schema': { + 'type': 'string' + } + }, + # Simple string to represent hierarchical categories. Should follow + # this schema: "Root > Nested Category > One More Nested Category" + 'categories': { + 'type': 'string' } }, 'form_schema': { @@ -56,7 +68,9 @@ node_type_asset = { 'content_type': {'visible': False}, 'file': {'visible': False}, 'attachments': {'visible': False}, - 'order': {} + 'order': {}, + 'tags' : {}, + 'categories': {} }, 'permissions': { # 'groups': [{