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
Hi Zopistas,
This is the second alpha release of zzLocale, a Zope locale support
Product.
zzLocale provides a framework for Zope interface internationalization
(Zope and Products management screens). The localization is done on a
per request basis, which allows developers from
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
Erik Enge wrote:
call, it won't redirect. So you should be able to achieve the same
results just by invoking manage_addImage without including the REQUEST
object.
But I have to pass something with the REQUEST, or else it won't add the
image, right?
I do not think so.
"manage_addImage"