[prev in list] [next in list] [prev in thread] [next in thread]
List: zope
Subject: Re: [Zope] ZClass with Renderable and DTML document doesn't work
From: Dieter Maurer <dieter () handshake ! de>
Date: 2001-09-30 21:53:33
[Download RAW message or body]
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
_______________________________________________
Zope maillist - Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic