30 Sep
2001
30 Sep
'01
9:53 p.m.
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