[Zope] Getting info about a newly created object
   
    Philippe Jadin
     
    philippe.jadin@123piano.com
       
    Sat, 9 Jun 2001 13:47:20 +0200
    
    
  
> <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