[Zope-dev] More almost __call__ ;-)

Shane Hathaway shane@digicool.com
Fri, 13 Oct 2000 11:59:05 -0400


Jim Fulton wrote:
> 
> Shane Hathaway wrote:
> >
> > Jim Fulton wrote:
> > > Note that if you get called from the web, RESPONSE will
> > > not be none. This is a handy way to decide if you
> > > are called from the web or as a sub-template. Of course,
> > > someone could pass a non-None RESPONSE argument directly.
> >
> > This convention is helpful but not at all documented, so products (ZWiki
> > is a good example) often break this convention.
> 
> Which convention? The passing of arguments with names meaningful to
> the publisher is certainly well documented.

No, I was referring to the convention of RESPONSE being passed only if
ZPublisher is calling the method.  It is not documented and often
broken.

Shane