Hi All. I am uploading files not using the management-interface but extra defined forms. <form action="upload" enctype="multipart/form-data" method=post> [bla bla] </form> Ok. Then I call the "object_add(_.None,_, NoRedir=1)" method which adds the object. a) I have to call "manage_editProperties(REQUEST)" in order to set the title-property b) after I do this, the "content_type" property is empty. How is this? I am using Zope2.1.2, Linux/intel and Win32 Thanks for your help, regards Ingo.
Ingo Assenmacher schrieb:
Hi All.
[...]
Ok. Then I call the "object_add(_.None,_, NoRedir=1)" method which adds the object. a) I have to call "manage_editProperties(REQUEST)" in order to set the title-property b) after I do this, the "content_type" property is empty.
How is this?
Not sure here, but for a similar file upload via form I use <dtml-call "manage_addFile( id, file,title)"> instead of "object_add(..)". This works without any problems. hth, Thomas -- fon: ++49 (0)40 42878 3781 fax: ++49 (0)40 42878 2728
----- Original Message ----- From: Ingo Assenmacher <ingo.assenmacher@post.rwth-aachen.de>
a) I have to call "manage_editProperties(REQUEST)" in order to set the title-property b) after I do this, the "content_type" property is empty.
You've just been bitten by the difference between manage_editProperties and manage_changeProperties. The former erases any property whose value is not specified in the REQUEST. The latter does what you wanted. Cheers, Evan @ 4-am & digicool
participants (3)
-
Evan Simpson -
Ingo Assenmacher -
Thomas Weiner