Zope 3 exception views
This packages provides Zope 3 browser views for some generic exceptions.
System Errors are errors representing a system failure. At the application level, they are errors that are uncaught by the application and that a developer hasn’t provided a custom error view for.
Zope provides a default system error view that prints an obnoxius terse message and that sets the response status.
There is a simple view registered in ftesting.zcml which raises Exception():
>>> print(http(r""" ... GET /error.html HTTP/1.1 ... """)) HTTP/1.1 500 Internal Server Error ... A system error occurred. ...
Another way of getting a system error is the occurrence of a system error, such as ComponentLookupError. I have registered a simple view in ftesting.zcml, too, that will raise a component lookup error. So if we call componentlookuperror.html, we should get the error message:
>>> print(http(r""" ... GET /componentlookuperror.html HTTP/1.1 ... """)) HTTP/1.1 500 Internal Server Error ... A system error occurred. ...
- Add support for Python 3.7, 3.8 and 3.9.
- Drop support for Python 3.4.
- Fix tests to run with zope.component >= 5.
- Add support for PyPy, and Python 3.4, 3.5 and 3.6.
- Remove test dependency on zope.app.testing, zope.app.zcmlfiles and many others.
- Replaced an undeclared test dependency on zope.app.authentication with zope.password.
- No longer depend on zope.app.zptpage for tests.
- Replaced dependency on zope.app.securitypolicy by zope.securitypolicy.
- Require zope.browserpage which now contains namedtemplate.
- Fix ftesting.zcml due to zope.securitypolicy update.
- Fix tests using a newer zope.publisher that requires zope.login.
- ISystemErrorView interface has been moved to zope.browser.interfaces, leaving BBB import here.
- Cut dependency on zope.formlib by requiring newer version of zope.app.pagetemplate which now contains namedtemplate.
- Use new zope.authentication instead of zope.app.security.
- Removed deprecated code and thus removed dependency on zope.deferredimport.
- Removed old zpkg-related SETUP.cfg file.
- Substitute zope.app.zapi by direct calls to its wrapped apis. See bug 219302.
- Fixed author email and home page.
- Resolve ZopeSecurityPolicy deprecation warning.
- Initial release independent of the main Zope tree.
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size zope.app.exception-4.1.0-py2.py3-none-any.whl (17.1 kB)||File type Wheel||Python version py2.py3||Upload date||Hashes View|
|Filename, size zope.app.exception-4.1.0.tar.gz (11.5 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for zope.app.exception-4.1.0-py2.py3-none-any.whl