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

Tino Wildenhain tino at wildenhain.de
Fri Aug 1 18:12:26 EDT 2003


Hi,

Fergal Daly wrote:
> On Friday 01 August 2003 14:24, Tino Wildenhain wrote:
> 
>>where does the temp_cond come from? why not using user/isLoggedIn
>>everywhere instead?
> 
> 
> Because evaluating expressions more than once might be a bad idea.
> 
>>Simple rule of thumb: (1) when it becomes complicated to do with TAL,
>>you pobably do something the wrong way. Redesign your application in
>>this case.
> 
> 
> Perhaps you would like to have a word with the the authors of Zope and explain 
> how their application is badly designed. A grep on Zope 2.7.0.b1 turns up

Yes of course, that is bad design. You cannot even expect that all the
developers get it right in the first try :-)
Its even worser when you look at the CMF sources ;)

Its hard to change ones way of thinking...

Regards
Tino




More information about the ZPT mailing list