Re: [Zope-dev] getting request variables values

2000-07-24 Thread Chris Withers
Steve Alexander wrote: def __getitem__/__getattr__ from HTTPRequest.py: """Get a variable value Return a value for the required variable name. The value will be looked up from one of the request data categories. The search order is environment variables,

Re: [Zope-dev] getting request variables values

2000-07-21 Thread Steve Alexander
Chris Withers wrote: Evan Simpson wrote: The value you're after is stored in the 'environ' section of the request. Unlike 'other' and 'cookies' keys, 'environ' keys can't generally be fetched as attributes or keys of REQUEST. You need to access them as REQUEST.environ['keyname'].

Re: [Zope-dev] getting request variables values

2000-07-21 Thread Steve Alexander
Steve Alexander wrote: However, looking in the code, it starts off by looking in "other", and doesn't look in "environ" at all. I suggest a patch to go right after the method's docstring: def __getitem__(self,key, default=_marker, # Any special internal marker

Re: [Zope-dev] getting request variables values

2000-07-21 Thread Steve Alexander
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

Re: [Zope-dev] getting request variables values

2000-07-21 Thread Shane Hathaway
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

Re: [Zope-dev] getting request variables values

2000-07-20 Thread Leonardo Kenji Shikida
ton [EMAIL PROTECTED] To: Leonardo Kenji Shikida [EMAIL PROTECTED] Sent: Thursday, July 20, 2000 4:18 PM Subject: Re: [Zope-dev] getting request variables values Leonardo Kenji Shikida wrote: does not work with dtml-var standard_html_header h2dtml-var title_or_id/h2

RE: [Zope-dev] getting request variables values

2000-07-20 Thread Chris McDonough
ji Shikida' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, July 20, 2000 4:44 PM Subject: RE: [Zope-dev] getting request variables values Have you tried: dtml-var "REQUEST['SSL_CLIENT_EMAIL']" ? -Original Message- From: Leonardo Kenji Shikida [mai

Re: [Zope-dev] getting request variables values

2000-07-20 Thread Steve Alexander
Leonardo Kenji Shikida wrote: here it is. Try using dtml-var "REQUEST['SSLL_CLIENT_IEMAIL']" instead. Kenji SSL_CLIENT_IEMAIL [EMAIL PROTECTED] -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope-Dev

Re: [Zope-dev] getting request variables values

2000-07-20 Thread Evan Simpson
The value you're after is stored in the 'environ' section of the request. Unlike 'other' and 'cookies' keys, 'environ' keys can't generally be fetched as attributes or keys of REQUEST. You need to access them as REQUEST.environ['keyname']. Cheers, Evan @ digicool 4-am

Re: [Zope-dev] getting request variables values

2000-07-20 Thread Leonardo Kenji Shikida
variables values How about: dtml-var "REQUEST.environ['SSL_CLIENT_EMAIL']" ? -Original Message- From: Leonardo Kenji Shikida [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 20, 2000 4:40 PM To: [EMAIL PROTECTED] Subject: Re: [Zope-dev] getting request variables values