Page MenuHome

post.py
No OneTemporary

from pillar.api.node_types import _attachments_embedded_schema
node_type_post = {
'name': 'post',
'description': 'A blog post, for any project',
'dyn_schema': {
# The blogpost content (Markdown format)
'content': {
'type': 'string',
'minlength': 5,
'maxlength': 90000,
'required': True
},
'status': {
'type': 'string',
'allowed': [
'published',
'pending'
],
'default': 'pending'
},
# Global categories, will be enforced to be 1 word
'category': {
'type': 'string',
},
'url': {
'type': 'string'
},
'attachments': _attachments_embedded_schema,
},
'form_schema': {
'attachments': {'visible': False},
},
'parent': ['blog', ],
}

File Metadata

Mime Type
text/x-python
Expires
Mon, Sep 28, 11:08 AM (2 d)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
b0/a0/f55f4870ce6691778defd1a7dc41

Event Timeline