[Seaside] Questions about double (or more) request

Julian Fitzell jfitzell at gmail.com
Wed Aug 5 21:56:09 UTC 2009


2009/8/5 Miguel Enrique Cobá Martinez <miguel.coba at gmail.com>:
> El mié, 05-08-2009 a las 18:45 -0100, Mariano Martinez Peck escribió:
>> Thanks to all. Now I get it. But...I still wonder how can I manage
>> double request.
>>
>> c) how can I handle the famous double commit? suppose now self
>> increase does something in a relational database (like persisting an
>> order or something like that) and I don't want it to get persisted
>> twice or I don't want an error because of duplicated PK
>>
>
> check the isolate: message of seaside (I think that it is from
> WAComponent) for processing a request just one time. I think it can help
> you

As Miguel says, #isolate: is the usual way of handling this.

Julian


More information about the seaside mailing list