[Zope] testing for "REQUEST is not None"

Willem Broekema willem@pastelhorn.com
Thu, 07 Nov 2002 02:23:36 -0100


Andy McKay wrote:

> >   if REQUEST:
>
> Because this tests it against more than being just None. For example 
> an empty dict, string of zero length etc would all pass.

Thanks, but that part I understand.

I should have asked: in what case would REQUEST be such a thing, instead 
of a Request instance?

Is it to catch users who deliberately add '&REQUEST=&..' to their query 
string?


- Willem