Attachment rendering for posts & node descriptions.

This commit is contained in:
2016-10-26 12:07:01 +02:00
parent d50d206e77
commit aef7754537
7 changed files with 104 additions and 2 deletions

View File

@@ -7,12 +7,14 @@ _file_embedded_schema = {
}
}
ATTACHMENT_SLUG_REGEX = '[a-zA-Z0-9_ ]+'
_attachments_embedded_schema = {
'type': 'dict',
# TODO: will be renamed to 'keyschema' in Cerberus 1.0
'propertyschema': {
'type': 'string',
'regex': '^[a-zA-Z0-9_ ]+$',
'regex': '^%s$' % ATTACHMENT_SLUG_REGEX,
},
'valueschema': {
'type': 'dict',