Re: [Zope] Passing an instance in a form to a product method

2008-04-04 Thread Andreas Jung
--On 4. April 2008 09:50:04 +0200 Ulla Theiss <[EMAIL PROTECTED]> wrote: The object doc has nothing to do directly with uploading the file. In this object is some further information. And to do things in a handy way, I need that further information (doc) in the method, called after submittin

Re: [Zope] Passing an instance in a form to a product method

2008-04-04 Thread Ulla Theiss
Hello List, first, many thanks for the very fast and polite answer. I already know the Zope-Book for many years, but I did not find a solution there, for my special problem. Perhaps I have to give a little bit more context to you. I tried to make the code-excerpt short - perhaps too short.

Re: [Zope] Passing an instance in a form to a product method

2008-04-04 Thread Andreas Jung
--On 4. April 2008 09:05:59 +0200 Ulla Theiss <[EMAIL PROTECTED]> wrote: Hello List, I have to pass an instance of a self-defined class within a form to a product method. I try it in the following way: Please don't invent new syntax or new APIs...or don't expe

[Zope] Passing an instance in a form to a product method

2008-04-04 Thread Ulla Theiss
Hello List, I have to pass an instance of a self-defined class within a form to a product method. I try it in the following way: But within the method addUploadFile, always the parameter doc is passed as a string (the name of the instance) Does anybody know, what I have to change, that