cvpysdk icon indicating copy to clipboard operation
cvpysdk copied to clipboard

import_worklow with raw xml.etree.ElementTree.tostring input

Open dnicolleau opened this issue 1 year ago • 0 comments

Hello, into workflow.py , the workflow_xml parameter of import_workflow method need to be a str since SP30 (rev 9fe1e32161e3feaf58085cf77df6ab322a8dca8b ) instead of basestring in the past. It is an issue if you use the result of xml.etree.ElementTree.tostring as workflow definition because you must use UTF-8 encoding for kept local language chars. It is possible to use a temporary file with this method because this file is read with UTF-8 encoding but it is more practical if it is possible to directly use XML data as argument Is it possible to accept again some UTF-8 for workflow_xml ? Regards

dnicolleau avatar Jan 22 '24 16:01 dnicolleau