From 9b566cfb83891c3d96618b3f35bd58509442c1e2 Mon Sep 17 00:00:00 2001 From: EL HADJI DEM Date: Tue, 27 May 2014 15:39:19 -0400 Subject: [PATCH] [IMP] update the create_doc_in_edm function --- cmis_write/ir_attachment.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmis_write/ir_attachment.py b/cmis_write/ir_attachment.py index 01dd3ea6..22531e8d 100644 --- a/cmis_write/ir_attachment.py +++ b/cmis_write/ir_attachment.py @@ -116,8 +116,7 @@ def create_doc_in_edm(session, model_name, value, res, sub1 = repo.getObjectByPath(folder_path) else: sub1 = root - - someDoc = sub1.createDocumentFromString(value['datas_fname'], + someDoc = sub1.createDocumentFromString(file_name, contentString=base64.b64decode( value['datas']), contentType=value['file_type'])