[Zope] how to avoid a redirect ?

Stefan H. Holek stefan@epy.co.at
Sat, 17 May 2003 13:51:40 +0200


There is nothing wrong with performing the redirect. I'd even say this 
is the exact thing to do in a situation like yours.

Stefan


On Freitag, Mai 16, 2003, at 22:44 Europe/Vienna, Joachim Schmitz wrote:

> or better how to finish a transaction programmaticaly ?
>
> I have a form, which list object and a checkbox beside each line, 
> where I can mark objects for deletion. The delete-method deletes the 
> checked objects but when I just do a
>
> return context.listForm()
>
> in my delete-method, the deleted objects still show up, only after a 
> reload of the form they are really gone.
>
> if I do a
>
> return 
> context.REQUEST.RESPONSE.redirect(context.REQUEST.get("HTTP_REFERER"))
>
> the list is directly refreshed. I assume, that's because the 
> transaction is not finished in the first case. So my question is there 
> a way to finish the transaction programmatically ?

--
The time has come to start talking about whether the emperor is as well
dressed as we are supposed to think he is.               /Pete McBreen/