[Zope] exUserFolder and Zope 2.12

Andrew Milton akm at theinternet.com.au
Sat Jan 2 01:22:46 EST 2010


+-------[ William Heymann ]----------------------
|
|  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.

[SNIP]

|
| If I go to the page that the Refresh refers to in any of the browers that 
| works fine. The raise form works fine on older versions of zope with no issues 
| on any of these browers. Konqueror and IE will both have their icons spinning 
| on that page like they are waiting for something.
| 
| Any ideas or help would be appreciated. I have tried lots of things to get
| it working.

Try adding more padding ... 

IE (not sure about Konq) has this annoying habit of giving you a "nice"
page instead of the one we want... it used to be if the page was < 512
bytes it would give you its own page...

I'll try to look into it over the weekend...

-- 
Andrew Milton
akm at theinternet.com.au


More information about the Zope mailing list