[Zope] Convert String to object?

Philippe Jadin all@123piano.com
Tue, 05 Mar 2002 13:17:41 +0100


Martin Bernhardt wrote:

>
>My problem is that I have not yet found a way to upload the files to the
>CORRECT folder. I have access to the 'id' and 'title' attribute of the
>desired folder in my form-processing-method, but how can I convert these
>attributes to an object? (
>

>My plan was to use Zope-Acquisition and to call
>the upload-method on the desired folder-object)
>
That's the easiest way to do it. In your link to add a doc, insert the 
name of the folder where you want to put content. With acquisition, the 
method will be called in he context of this folder, and will simply add 
the doc there.

hth

philippe