[Zope] how to avoid a redirect ?

Joachim Schmitz js@aixtraware.de
Sat, 17 May 2003 08:34:53 +0000


that helps in the case, where one does not change any objects in the=20
ZODB, but if one for example deletes objects in the formprocessing,=20
which you can mark in the formcode, then the deleted objects still show=20
up in the form, cause it is all done in one transaction.


Dylan Reinhardt wrote:
> When you want to immediately display the results of changing informatio=
n
> in a form, I find it works best when a form submits to itself rather
> than to an intermediate target.  Doing this avoids the caching/latency
> issue altogether. =20
>=20
> For example:
>=20
> ----------------
> <!-- Process changes first -->
>=20
> <dtml-if is_form_submit>
>    Do form processing here...
> </dtml-if>
>=20
>=20
> <!-- Draw the form with the latest data available -->
>=20
> <form target=3D<dtml-var URL> method=3Dpost>
>    <input type=3Dhidden name=3Dis_form_submit value=3D1>
>    Form code goes here...
> </form>
> ----------------
>=20
> HTH,
>=20
> Dylan
>=20
>=20
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -=20
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )


--=20
Mit freundlichen Gr=FC=DFen                              Joachim Schmitz
--------------------------------------------------------------------
AixtraWare Ingenieurb=FCro f=FCr Internetanwendungen
Telefon: +49-2464-8851, FAX: +49-2464-905163
--------------------------------------------------------------------