[Zope] Re: Subclass and Image

Daniel Rogahn drogahn@d.umn.edu
Thu, 12 Jul 2001 19:59:48 -0500


> > It renders to (something like) <classname instance at 1234567>
> > I think that was when I used no base class
>This is normal:

>  To render "index_html", you should use:
>     <dtml-var "_.render(your_instance.index_html)">

Thanks, that nudged me in the right direction, I found what I needed here
http://www.zope.org/Members/lalo/Renderable-ZClass
"
This is a base class for your ZClasses that makes subclasses renderable, so
you can say <dtml-var myobject> (like you can do with images).
"

I'm still not sure why index_html isn't called by dtml-var in a dtml ZClass
by default... so it can be var'ed from a page without those workarounds (no
wonder noone likes dtml ZClasses!)

Daniel Rogahn