[Zope-dev] Zope2.13 WSGI Publisher is not calling response.exception or zpublisher_exception_hook
Stephan Hofmockel
dreagonfly at gmx.de
Tue Nov 15 10:11:37 UTC 2011
Hello,
I'm trying to port my app for the WSGI-Publisher of Zope2.13. It it
seems that zpublisher_exception_hook (which searches then for
'standard_error_msg' inside the Acquistion-chain) or reponse.exception
are *not* called anymore to render a suitable exception.
Is this intentionally? I have seen at various guides in the web, that a
middleware like WebError is used to render good error pages.
However current middlewares, like WebError, are optimized to for WEB and
XML-RPC. Unfortunately my application needs to handle different
protocols like SOAP or proprietary protocols using a XML dialect.
Up to now I'm (ab)using the old mechanism to render errors, according to
the incoming protocol.
What is the recommendation in the long run here. Is it planned for
Zope2.13 or Zope4 to support the old mechanism, then I'm ready to
contribute. Or should I concentrate to write custom WSGI-middlewares, to
do the error rendering.
Regards,
Stephan
More information about the Zope-Dev
mailing list