[Zope-dev] Re: Folderish object's __call__ fails
Casey Duncan
casey at zope.com
Thu Mar 4 16:12:56 EST 2004
On Thu, 4 Mar 2004 13:03:20 -0800 (PST)
Dirksen <dirksen_lau at 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
More information about the Zope-Dev
mailing list