[Zope] 'import' directory accesible from scripting.

Dieter Maurer dieter at handshake.de
Thu Aug 28 22:05:56 EDT 2003


Luis Lavena wrote at 2003-8-27 21:10 -0300:
 > I think that I start getting the picture:
 > (please correct me if I'm wrong)
 > 
 > What I need is my own Folderish (ObjectManager implementation) with a 
 > customized manage_importObject() which at the same time call 
 > _importObjectFromFile() to handle the "real" file import process.

No. What you need is easier.

You need *some* method (which may be an External Method)
that somehow gets a file (maybe via an "ZPublisher.HTTPRequest.FileUpload"
instance or as a file name which it opens) and then
calls the "_importObjectFromFile" of the target with this file.

That's it.


Dieter



More information about the Zope mailing list