Shane Hathaway wrote:
> 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.

The fact that ZPublisher will pass it is documented.  Whether
or not something else calls it is up to the something else.
The method designer specified an interface that includes RESPONSE.
If it requires RESPONSE, by not specifying a default, then it 
requires the clients to oass it. If the clients don't, then they
are not satisfying the interface.  Are you saying that objects
that require that RESPONSE is passed are broken because they don't
sufficiently advertise the fact?


Jim Fulton           mailto:[EMAIL PROTECTED]   Python Powered!        
Technical Director   (888) 344-4332    
Digital Creations    

Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission.  Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for

Zope-Dev maillist  -  [EMAIL PROTECTED]
**  No cross posts or HTML encoding!  **
(Related lists - )

Reply via email to