[Zope-dev] getting request variables values

Shane Hathaway shane@digicool.com
Fri, 21 Jul 2000 17:05:04 -0400


Steve Alexander wrote:
> My question is "why was __getitem__ of HTTPRequest.py designed this
> way?".
> 
> Is there a good reason that it filters the keys according to membership
> of a standard-cgi-keys list, or whether they start with 'HTTP_' ?
> Would there be any disadvantage to altering __getitem__ so that it
> behaves according to its docstring?

I looked at the entire history of that code.  This algorithm dates back
to 1996.

I think the issue is that environ may include the Zope process
environment variables, such as PATH, LD_LIBRARY_PATH, CVSROOT, USER,
etc.  Publish.publish_module() appears to pass in os.environ .  That's
just a quick analysis, though.

Shane