Re: exception views lost context on Zope 2.12

Hanno Schlichting <[email protected]>
Newsgroups gmane.comp.web.zope.devel,gmane.comp.web.zope.plone.devel
Message-ID <[email protected]>
On Tue, Feb 23, 2010 at 10:56 AM, Wichert Akkerman <[email protected]> wrote:
> In Zope 2.10 exception views were acquisition-wrapped in the publisher
> context.

In Zope 2.10, exception views didn't exist in Zope2. They were only
introduced in Zope 2.11.

> This appears to have changed in Zope 2.12: exception views are
> now wrapped in the exception. This is problematic since it means you can
> no longer use the context when rendering an error page, so things like
> ++resource++ or anything else which relies on a working acquisition
> context, which is pretty much everything, break.
>
> Is this an unexpected regression from the acquisition changes, or a
> deliberate change?

The exception view support in Zope3 and Zope2 has always been a view
on the exception value and the request. There's no context involved.
Not sure which backport or monkey patch you have been using in 2.10
here.

Hanno
_______________________________________________
Zope-Dev maillist  -  [email protected]
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.