[ZPT] Re: TAL's lack of an else...

Chris Withers chrisw at nipltd.com
Sat Aug 2 11:53:34 EDT 2003


Fergal Daly wrote:
> Expense is just one aspect, what if calling it twice is just something you 
> shouldn't do because it inserts something in a datavase or has some other 
> side effect.

Stuff used in this context should _never_ have side effects!
If it does, you deserve the complexity you get!

> You should not have to wrap your objects in caching objects just 
> to reliably use them in TAL,

The tal:define is a perfectly nice way of getting around this.
That said, Cache Managers are suc ha doddle to use in Zope, I think Jean's 
suggestion is fine.

cheers,

Chris




More information about the ZPT mailing list