uniqueValuesFor makes an unexpected evaluation.
I used the following dtml: <dtml-in "Catalog.uniqeValuesFor('countries')"> This works as expected, that is returning a list of the unique values in the "countries" index. But if I run this from a folder that is a subfolder to a fodler called "countries" then index_html gets called for this folder (which the failes, because the index:_html makes a call to REQUEST and it doens't get one). 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. Anybody have *any* idea?
Lennart Regebro writes:
<dtml-in "Catalog.uniqeValuesFor('countries')"> ...
This works as expected, that is returning a list of the unique values in the "countries" index. But if I run this from a folder that is a subfolder to a fodler called "countries" then index_html gets called for this folder (which the failes, because the index:_html makes a call to REQUEST and it doens't get one).
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...
I would say, the problem must be at a different place. Dieter
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....
participants (3)
-
Dieter Maurer -
Lennart Regebro -
Lennart Regebro