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,
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'].
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
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
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
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
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
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
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
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
10 matches
Mail list logo