On Sat, Jan 2, 2010 at 11:12 AM, William Heymann <k...@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 )