4 Mar
2004
4 Mar
'04
9:12 p.m.
On Thu, 4 Mar 2004 13:03:20 -0800 (PST) Dirksen <dirksen_lau@yahoo.com> wrote:
Hi,
I'm developing a product, which extends ObjectManager. Meanwhile, I'd like it to behave like a script object, similar to DTML method. So I define a __call__ method. But it never gets run if called from the browser. If I change the base class to SimpleItem, it works. How can I make __call__ works for folderish object?
Try adding a class attribute index_html and set it to None. This is what the CMF does to get __call__ invoked. It's what we affectionately call a "dead chicken", a sacrafice to the Zope gods... hth, -Casey