Attachment schema for post node_type
This commit is contained in:
parent
0475f7b456
commit
217d768c92
@ -1,3 +1,5 @@
|
|||||||
|
from manage.node_types import _file_embedded_schema
|
||||||
|
|
||||||
node_type_post = {
|
node_type_post = {
|
||||||
'name': 'post',
|
'name': 'post',
|
||||||
'description': 'A blog post, for any project',
|
'description': 'A blog post, for any project',
|
||||||
@ -24,13 +26,34 @@ node_type_post = {
|
|||||||
},
|
},
|
||||||
'url': {
|
'url': {
|
||||||
'type': 'string'
|
'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': {
|
'form_schema': {
|
||||||
'content': {},
|
'content': {},
|
||||||
'status': {},
|
'status': {},
|
||||||
'category': {},
|
'category': {},
|
||||||
'url': {}
|
'url': {},
|
||||||
|
'attachments': {'visible': False},
|
||||||
},
|
},
|
||||||
'parent': {
|
'parent': {
|
||||||
'node_types': ['blog',]
|
'node_types': ['blog',]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user