[Zope] Re: problem with input elements and unicode/utf-8

Jostein Leira jleira at yahoo.com
Wed Feb 21 14:45:55 EST 2007


Andreas Jung <lists at zopyx.com> wrote:  --On 21. Februar 2007 11:30:11 +0100 Andreas Jung 
wrote:
> --On 21. Februar 2007 02:05:36 -0800 Jostein Leira 
> wrote:
>> header_present = 'HTTP_ACCEPT_CHARSET' in self.request
>> to
>>
>> header_present = 'HTTP_ACCEPT_CHARSET' in self.request.keys()
>>
>
> I assume that the request implementation of Zope 3 and Zope 2 differ a bit
> when it comes to the 'in' operator. If request.keys() works for Zope 3
> request as well I would like to see this fixed in Zope 3.
>

After checking the implements and the unittests: I don't see any difference
in the behavior of both statements. They behave identical.

-aj  In my Zope 2.10.2 installation the two statements really do behave different. 
   
  -Jost


  
---------------------------------
Looking for earth-friendly autos? 
 Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20070221/9b8c8c8f/attachment.htm


More information about the Zope mailing list