Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 529 Bytes

directories.rst

File metadata and controls

30 lines (18 loc) · 529 Bytes

Work with directories

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')