Fetch all entries of a directory
entries = nuxeo.directory('nature').fetch_all()
Fetch a given directory entry
entry = nuxeo.directory('nature').fetch('article')
Create a new directory entry
new_entry = {
'id': 'foo',
'label': 'Foo',
}
entry = nuxeo.directory('nature').create(new_entry)
Delete a directory entry
nuxeo.directory('nature').delete('foo')