9 Jun
2001
9 Jun
'01
11:47 a.m.
<untested> id = file.filename # not sure about this filename context.manage_addProduct['OFSP'].manage_addFile(id, file=file.read(), title='XYZ', content_type='text/plain') </untested>
Thanks, it worked almost with this. [answering myself] What I finally did is: ----------------- import string # create the document id from the filename filename=file.filename id=filename[max(string.rfind(filename, '/'), string.rfind(filename, '\\'), string.rfind(filename, ':'), )+1:] # create the file object context.manage_addProduct['OFSP'].manage_addFile(id,file) ------------------ My leitmotiv now : look at the sources... Thanks again ! Philippe