Having trouble with dtml-in, it seems to affect the current object "space" you're in? Im not sure about what all dtml-in affects, please take a look:
( just putting "cool_poll" in the kevntest object does not work,
the cool_poll/index_html object actually needs to be called
for somereason.
Im using the "poll" module from the zope site
)
Here's my object hierarchy:
- root
+ squishdot
- index_html
+ kevntest
- kevnpoll
+ poll
- index_html
Including the following in root/squishdot/index_html does *not* work: (see error below)
<dtml-with kevntest>
<dtml-in "objectValues(['DTML Method'])">
<dtml-var title><BR>
<dtml-var sequence-item>
</dtml-in>
</dtml-with>
Including the following in root/squishdot/index_html works:
<dtml-with kevntest>
<dtml-var kevnpoll>
</dtml-with>
The file root/squishdot/kevntest/kevnpoll contains:
<dtml-with cool_poll>
<dtml-var index_html>
</dtml-with>
And here is the Zope server error Im getting, when it does *not* work:
Zope Error
Zope has encountered an error while publishing this resource.
Error Type: AttributeError
Error Value: __call__
-- ------------------------------------------------- Kevin Meinert KevinMeinert@bigfoot.com http://www.bigfoot.com/~KevinMeinert