Skip to content

Nuxeo Load notes for UCB

Barbara Hui edited this page Mar 25, 2015 · 14 revisions

Nuxeo Load notes for UCB

Loading a collection into Nuxeo basically consists of 2 steps:

  1. load files
  2. load metadata

Both make use of the pynux library, which is a python wrapper for the Nuxeo REST API.

Load Files

At its most basic, this entails using pynux's pifolder command to load a folder of content. For example:

pifolder --leaf_type SampleCustomPicture \
  --input_path /apps/content/new_path/UCM/MercedMugbook \
  --target_path /asset-library/UCM/ \
  --folderish_type SampleCustomPicture

This assumes that the /asset-library/UCM/MercedMugbook folder does not exist on Nuxeo yet. If the folder does already exist, use the --skip_root_folder_creation option like so:

pifolder --leaf_type SampleCustomPicture \
  --input_path /apps/content/new_path/UCM/MercedMugbook \
  --target_path /asset-library/UCM/ \
  --folderish_type SampleCustomPicture
  --skip_root_folder_creation
Clone this wiki locally