[Zope] dtml-in
Kevin Meinert
kevn@vrac.iastate.edu
Fri, 25 Feb 2000 18:22:02 -0600
--------------8F2D51807495AA075F6A85B7
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
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
--------------8F2D51807495AA075F6A85B7
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
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:
<p>( just putting "cool_poll" in the kevntest object does not work,
<br> the cool_poll/index_html object actually needs to be called
for somereason.
<br> Im using the "poll" module from the zope site
<br>)
<br>
<br>
<p>Here's my object hierarchy:
<p>- root
<br> + squishdot
<br> - index_html
<br> + kevntest
<br> - kevnpoll
<br> + poll
<br> - index_html
<br>
<br>
<p>Including the following in root/squishdot/index_html does *not* work:
(see error below)
<p><dtml-with kevntest>
<br> <dtml-in "objectValues(['DTML Method'])">
<br> <dtml-var title><BR>
<br> <dtml-var sequence-item>
<br> </dtml-in>
<br></dtml-with>
<br>
<p>Including the following in root/squishdot/index_html works:
<p><dtml-with kevntest>
<br> <dtml-var kevnpoll>
<br></dtml-with>
<br>
<p>The file root/squishdot/kevntest/kevnpoll contains:
<br><dtml-with cool_poll>
<br> <dtml-var index_html>
<br></dtml-with>
<br>
<p>And here is the Zope server error Im getting, when it does *not* work:
<br>
Zope Error
<p>
Zope has encountered an error while publishing this resource.
<p>
Error Type: AttributeError
<br>
Error Value: __call__
<br>
<br>
<br>
<pre>--
-------------------------------------------------
Kevin Meinert
KevinMeinert@bigfoot.com
<A HREF="http://www.bigfoot.com/~KevinMeinert">http://www.bigfoot.com/~KevinMeinert</A></pre>
</html>
--------------8F2D51807495AA075F6A85B7--