Commit 9c7e30ed authored by Bruno Nocera Zanette's avatar Bruno Nocera Zanette

Update example script

parent 32d9450c
......@@ -32,6 +32,11 @@ coll = request.get_collection(1)
# ALONG WITH ID, HANDLE, ...
item = coll.post_item(new_item)
# MODIFY INFO OF THE ITEM THAS HAS ALREADY BEEN POSTED
item.set_metadate("dc.title","NEW NAME, BECAUSE THE ACTUAL IS NOT GOOD")
item.set_metadata("dc.author","My Name")
item.put_metadata
# POST A NEW BITSTREAM TO THE NEW ITEM
file = item.post_bitstream('file.pdf')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment