[Zope] uniqueValuesFor makes an unexpected evaluation.

Lennart Regebro lennart@regebro.nu
Tue, 10 Dec 2002 21:04:49 +0100


From: "Dieter Maurer" <dieter@handshake.de>
>  > That makes absolutely no sense, and I can't even see why this would
happen.
>  > Why does countries gets called when I do
>  > "Catalog.uniqeValuesFor('countries')". There are quotation marks around
>  > countries, it should be treated like a string. It seems to me that it's
>  > called during the interpretation of the DTML, because it seems that
>  > uniqueValuesFor isn't being called.
> Unbelievable...

Pretty much...

> I would say, the problem must be at a different place.

Well, I did:

<dtml-let fix='countries'>
<dtml-in "Catalog.uniqueValuesFor(fix)">blblbla</dtml-in>
</dtml-let>

And everything worked. Very strange....