Currently only array of properties are allowed in operations parameters. We can let the user construct the final properties by allowing string.
Both snippets will do the same thing:
operation = nuxeo.operation('Document.Create') operation.params({ 'type': 'File', 'name': 'foo.txt', 'properties': {'dc:title': 'foo.txt', 'dc:description': 'bar'} }) operation.input('/') doc = operation.execute()
operation = nuxeo.operation('Document.Create') operation.params({ 'type': 'File', 'name': 'foo.txt', 'properties': 'dc:title=foo.txt\ndc:description=bar' }) operation.input('/') doc = operation.execute()