plone / diazo

Diazo applies a static HTML theme to a dynamic website
http://diazo.org
Other
41 stars 26 forks source link

Query as to why diazo.XS:TMiddlware.should_transform doesn't allow 401 #26

Open mgrbyte opened 11 years ago

mgrbyte commented 11 years ago

Hi,

I'm working with an app where I'd like to (re)display the login form on authentication errors, but am unable to set the correct HTTP response and have the form look correct, since diazo.XSLTMiddlware.should_transform returns False for HTTP 401. Is there a good reason for this, or could a way be provided to override the behaviour? e.g constructor paramter 'skip_transform_for_http_status=

Thanks!