-
Notifications
You must be signed in to change notification settings - Fork 2
Nuxeo Load notes for UCB
Barbara Hui edited this page Mar 25, 2015
·
14 revisions
Loading a collection into Nuxeo basically consists of 2 steps:
- load files
- load metadata
Both make use of the pynux library, which is a python wrapper for the Nuxeo REST API.
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