Skip to content
Namlook edited this page Aug 21, 2011 · 2 revisions

Best practices

Accessing fields

Fields in skeleton should be present in the document, fields in optional attribut are not generated by default. It aims to be for documentation only...

To access those fields, you can use the following convention:

for fields in skeleton:

    >>> title = blogpost['title']

for fields in optional:

    >>> tags = blogpost.get('tags', [])
Clone this wiki locally