[Zope] ZClasses and properties

Janko Hauser jhauser@ifm.uni-kiel.de
Sun, 10 Oct 1999 21:07:44 +0200 (CEST)


Ha, the type error comes from the file methods. Actually what happens
is, that the interface MZPhoto_addForm and MZPhoto_add only want to
get the id. But a File and an Image class needs to get a title and
also an uploaded file. Look for the addForm when you add a File
somewhere in Zope.

So you need to extent MZPhoto_addForm with a title and file form
field. As this is all put into the REQUEST object the MZPhoto_add need
not to be changed. (Have not tried it).

I can not say if this is supposed to work right, that the
automatically generated forms should be complete for the object which
should be added.

HTH

__Janko