[Zope-PAS] challenge branch ready for review

Lennart Regebro regebro at nuxeo.com
Tue Nov 23 10:23:06 EST 2004

Chris Withers wrote:
> Lennart Regebro wrote:
>> response._unauthorized does not set the header status, exception() 
>> does, it does not set the body, exception does, and so on.
>> We can prevent exception from setting the status by setting 
>> response._locked_status = 1 in the plugins. Not exactly obvious, but 
>> it can be documented. But we can't prevent it from setting the body. 
> Actually, in Zope 2.8, you can with response._locked_body.
> Also, response.setBody(...yada...,lock=True), which has the same effect.
> I added this ages ago so I could write a standard_error_message that 
> went to look on another server (in a proxy-ish sort of way) when a 404 
> occurred.

Argh! My head explodes!

(Nah. Not really. But the ZPublisher is amazingly complex and very 
magic. Anyway, I am planning to make my PAS and KniggetPlugins 
synchronized with PAS head Really Soon Now... )

Lennart Regebro, Nuxeo     http://www.nuxeo.com/
CPS Content Management     http://www.cps-project.org/

More information about the Zope-PAS mailing list