[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?&nbsp; 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>&nbsp; the cool_poll/index_html object actually needs to be called
for somereason.
<br>&nbsp; Im using the "poll" module from the zope site
<br>)
<br>&nbsp;
<br>&nbsp;
<p>Here's my object hierarchy:
<p>- root
<br>&nbsp;&nbsp; + squishdot
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - index_html
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; + kevntest
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - kevnpoll
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; + poll
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - index_html
<br>&nbsp;
<br>&nbsp;
<p>Including the following in root/squishdot/index_html does *not* work:
(see error below)
<p>&lt;dtml-with kevntest>
<br>&nbsp;&nbsp;&nbsp; &lt;dtml-in "objectValues(['DTML Method'])">
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dtml-var title>&lt;BR>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dtml-var sequence-item>
<br>&nbsp;&nbsp;&nbsp; &lt;/dtml-in>
<br>&lt;/dtml-with>
<br>&nbsp;
<p>Including the following in root/squishdot/index_html works:
<p>&lt;dtml-with kevntest>
<br>&nbsp;&nbsp;&nbsp; &lt;dtml-var kevnpoll>
<br>&lt;/dtml-with>
<br>&nbsp;
<p>The file root/squishdot/kevntest/kevnpoll contains:
<br>&lt;dtml-with cool_poll>
<br>&nbsp;&nbsp;&nbsp; &lt;dtml-var index_html>
<br>&lt;/dtml-with>
<br>&nbsp;
<p>And here is the Zope server error Im getting, when it does *not* work:
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Zope Error
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Zope has encountered an error while publishing this resource.
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Error Type: AttributeError
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Error Value: __call__
<br>&nbsp;
<br>&nbsp;
<br>&nbsp;
<pre>--&nbsp;

-------------------------------------------------
Kevin Meinert
KevinMeinert@bigfoot.com
<A HREF="http://www.bigfoot.com/~KevinMeinert">http://www.bigfoot.com/~KevinMeinert</A></pre>
&nbsp;</html>

--------------8F2D51807495AA075F6A85B7--