[Zope] ZClass with Renderable and DTML document doesn't work
Dieter Maurer
dieter@handshake.de
Sun, 30 Sep 2001 23:53:33 +0200 (CEST)
Brad Clements writes:
> I'm trying to create a ZClass that will call my own render function. The Zclass is derived
> from ZObject, ZDTMLDocument, _ZClass_for_Renderable
>
> The Renderable base class overrides __str__ to call a render function. I also
> modified it to overide __call__, but in any case when I view the document
> through a normal URL traverse, I only see the dtml being rendered, my render
> function is not called.
Inheritance order is essential.
Move your "_ZClass_for_Renderable" to the front.
Otherwise, it has no chance to override "ZDTMLDocument.__str__".
Dieter