Re: [Zope] <dtml-with object> calls first?
Chris Withers writes:
If you do <dtml-with object> where object is something callable, it calls it.
That's a bit unpleasant for things like Squishdot Sites which do something (return a list of all their elements) when you call them.
So the only way to _really_ do what I thought dtml-with is for was to do <dtml-with "object"> which is sucky to say the least.
I, definitely, prefer the current implementation to making "with" the (only) exception: currently, whenever you use the name parameter of a tag, the object is called when it is callable. If this would be changed, I am almost sure, Chris Withers would later complain about the inconsistency :-) Dieter
Dieter Maurer wrote:
If this would be changed, I am almost sure, Chris Withers would later complain about the inconsistency :-)
more than likely ;-) ..just a little confusign I guess ;-) cheers, Chris
participants (2)
-
Chris Withers -
Dieter Maurer