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
_______________________________________________
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope )