diff --git a/pillar/manage/node_types/post.py b/pillar/manage/node_types/post.py index 1419e1db..82c08040 100644 --- a/pillar/manage/node_types/post.py +++ b/pillar/manage/node_types/post.py @@ -1,3 +1,5 @@ +from manage.node_types import _file_embedded_schema + node_type_post = { 'name': 'post', 'description': 'A blog post, for any project', @@ -24,13 +26,34 @@ node_type_post = { }, 'url': { 'type': 'string' + }, + 'attachments': { + 'type': 'list', + 'schema': { + 'type': 'dict', + 'schema': { + 'field': {'type': 'string'}, + 'files' : { + 'type': 'list', + 'schema': { + 'type': 'dict', + 'schema': { + 'file': _file_embedded_schema, + 'slug': {'type': 'string', 'minlength': 1}, + 'size': {'type': 'string'} + } + } + } + } + } } }, 'form_schema': { 'content': {}, 'status': {}, 'category': {}, - 'url': {} + 'url': {}, + 'attachments': {'visible': False}, }, 'parent': { 'node_types': ['blog',]