[Seaside] WATransaction & WATransactionStack?
Avi Bryant
avi at beta4.com
Fri Jan 31 13:51:45 CET 2003
On Fri, 31 Jan 2003, Stephen Pair wrote:
> How are these classes used? In looking at the system, it's not apparent
> to me that these classes are used at all. Are these a left over from
> when you were doing more implicit management of the state of
> WAComponents?
No, they have nothing to do with that. They are used in the
implementation of WASession>>isolate:. There's an example use (in recent
releases anyway) in the WATransactionTest (registered under /seaside/txn).
The idea is that if you put code inside an #isolate: block, any pages
created during that block will immediately expire as soon as the block
ends. I use this, for example, to surround an entire sale in a
point-of-sale application: once payment has been received, you're not
allowed to use the back button to modify the contents of the shopping
cart...
Avi
More information about the Seaside
mailing list