I'm trying to transition a site from DTML to ZPT. I
have some ZClasses that I would like to use "as is" until I
get a chance to rewrite them.
When I try to display an object in a Page Template, it fails (the
Zlcass instance is called "bubbles" and is a folderish
object with a few properties and contains a Photo
Here is what I try to make it work:
<span tal:replace="structure
container/bubbles"/>
Result is the page is rendered with nothing where the object
should be. If I view the source of the rendered page I see
<highlight at bubbles> where the object (a highlight named
bubbles) should be.
Then I tried:
<span tal:replace="structure
container/bubbles/index_html"/>
Result is:
Error Type:
NameError
Error Value:
global name 'caption' is not defined
"Caption" is a property of the object. index_html
is a DTML method
Am I trying to do the impossible, or am I missing
something?
Kevin