[prev in list] [next in list] [prev in thread] [next in thread] 

List:       zope
Subject:    Re: [Zope] exUserFolder and Zope 2.12
From:       Baiju M <mbaiju () zeomega ! com>
Date:       2010-01-02 8:24:08
Message-ID: c911c70d1001020012v41d28ef4u9c21790242b8eddd () mail ! gmail ! com
[Download RAW message or body]

On Sat, Jan 2, 2010 at 11:12 AM, William Heymann <kosh@aesaeion.com> wrote:
> On Thursday 17 December 2009, Andrew Milton wrote:
>> +-------[ Baiju M ]----------------------
>>
>> | Hi,
>> |     In exUserFolder there are few exceptions raised like this:
>> |
>> | raise 'LoginRequired', self.docLogin(self, request)
>> |
>> | This will not working in Zope 2.12 (Python 2.6)
>> |
>> | Any idea, how to change it ?
>>
>> Replace the raise with;
>>
>> request.RESPONSE.setStatus(401)
>> request.RESPONSE.setHeader('Content-Type','text/html')
>> request.RESPONSE.write(self.docLogin(self,request))
>>
>
> I just tried that and it works in Firefox, Chrome and Opera but it is failing
> in IE and Konqueror. I tried a few versions of each of these browsers and
> the results are consistent. I don't see why it is failing though.
>
> I tried exactly what is up there along with also trying self.docLoginRedirect
> instead of docLogin. I used wireshark to watch the connection and I don't see
> anything wrong with it.

FYI, the solution suggested by Andrew worked for us in IE & FF.

Regards,
Baiju M
_______________________________________________
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic