summaryrefslogtreecommitdiff
path: root/doc/examples/part-handler.txt
AgeCommit message (Collapse)Author
2021-03-08Remove the vi comment from the part-handler example (#835)James Falcon
2010-07-21add better comments to the part-handler exampleScott Moser
2010-01-28add the part-handler pluginScott Moser
If a part of a multipart file is 'text/part-handler' then it is expected to be python code that implements 2 methods - list_types() list the types that this part-handler supports, return a list. ie: return(['text/plain']) - handle_parts(data,ctype,filename,payload) this method will be called: once, when loaded, with ctype == '__begin__' once per part once, at the end, with ctype == '__end__' - ctype is the content type ('text/plain') - filename is the filename portion of the mime data - payload is the content of the part - data is currently the cloud object, but this could change