[Zope] what am I doing wrong?
Martijn Pieters
Martijn Pieters <mj@digicool.com>
Sat, 25 Dec 1999 07:08:48 +0100
Saturday, December 25, 1999, 6:13:07 AM, Sam Gendler wrote:
SG> I have a form that looks exactly like the manage_addImageForm, except that it
SG> has a hidden field, goto, which contains a url. The form posts to a method
SG> called myCreateImage
SG> myCreateImage looks like this
SG> <dtml-call "manage_addImage">
SG> <dtml-call "RESPONSE.redirect(goto)">
SG> Everything executes error free, but no new image gets created. The redirection
SG> does occur, however. I purposely have no try/catch clause, hoping to spot an
SG> exception. no luck.
That's because you are calling the method definition of
manage_addImage, not the method itself. Change it to one of the
following:
<dtml-call manage_addImage>
<dtml-call "manage_addImage(id='', file=REQUEST.file)">
--
Best regards,
Martijn Pieters mailto:mj@digicool.com