[Zope-dev] Rollback or Commit in a DTML Method ?

Michel Pelletier michel@digicool.com
Tue, 29 Feb 2000 17:25:21 -0800


Juan Javier Carrera Obrero wrote:
> 
> Hello,
> 
> Anybody to know to how to do a "Rollback" or a "Commit" in a DTML Method
> ?

To commit, do nothing.  To rollback, raise an error:

<dtml-raise>
An Error!
</dtml-raise>

The current transaction is not commited if an error is raised.

-Michel


> 
> Thanks !!
> 
> ------------------------------------
> JUAN JAVIER CARRERA OBRERO
> e-mail: jcarrera@uco.es
> 
> _______________________________________________
> Zope-Dev maillist  -  Zope-Dev@zope.org
> http://lists.zope.org/mailman/listinfo/zope-dev
> **  No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope )