[Zope] newbie: referencing objects with dtml

Patrick Price jprice22@wvu.edu
Thu, 15 Aug 2002 21:23:58 -0400


Every time I get some time to play with Zope I feel like a complete 
idiot all over again. It's nice to have constant source of self abuse.

I have index_html in my root folder (a publishable resource..  Hah!)
I also have a /refs folder, with a quotes folder inside that, with some 
text/html files inside that.

I want to insert one of these files in refs.quotes  inline into index_html

I had this figured out the other day but I forgot how I did 
it...probably was using dtml file objects or something...
(Zope 2.6.0a1)

<dtml-var expr="refs.quotes.file">

while saving this (Save) it doesn't save it, and says instead:

says: Error Type: SyntaxError
Error Value: unexpected EOF while parsing (line 1)

Trying:

<dtml-in refs>
  <dtml-var sequence-item>
</dtml-in>

says unsliceable object

Hope you get a good laugh out of this. :-)

-Patrick Price