zope.app.exception


Namezope.app.exception JSON
Version 5.0 PyPI version JSON
download
home_pagehttp://pypi.python.org/pypi/zope.app.exception
SummaryZope 3 exception views
upload_time2023-02-07 09:35:59
maintainer
docs_urlNone
authorZope Corporation and Contributors
requires_python>=3.7
licenseZPL 2.1
keywords zope3 exception view
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            This packages provides Zope 3 browser views for some generic exceptions.


.. contents::

System Errors
=============

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.
  ...


CHANGES
=======

5.0 (2023-02-07)
----------------

- Add support for Python 3.10, 3.11.

- Drop support for Python 2.7, 3.5, 3.6.


4.1.0 (2021-03-22)
------------------

- 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``.


4.0.1 (2017-05-15)
------------------

- Fix rendering of user errors on Python 3.
  See `issue 2 <https://github.com/zopefoundation/zope.app.exception/issues/2>`_.


4.0.0 (2017-05-01)
------------------

- 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.

3.6.3 (2011-05-23)
------------------

- Replaced an undeclared test dependency on ``zope.app.authentication`` with
  ``zope.password``.


3.6.2 (2010-09-14)
------------------

- No longer depend on ``zope.app.zptpage`` for tests.

- Replaced dependency on ``zope.app.securitypolicy`` by
  ``zope.securitypolicy``.


3.6.1 (2010-01-08)
------------------

- 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.

3.6.0 (2009-05-18)
------------------

- ``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``.


3.5.0 (2009-04-06)
------------------

- 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.

3.4.2 (2009-01-27)
------------------

- Substitute zope.app.zapi by direct calls to its wrapped apis. See
  bug 219302.

- Fixed author email and home page.


3.4.1 (2007-10-31)
------------------

- Resolve ``ZopeSecurityPolicy`` deprecation warning.


3.4.0 (2007-10-24)
------------------

- Initial release independent of the main Zope tree.

            

Raw data

            {
    "_id": null,
    "home_page": "http://pypi.python.org/pypi/zope.app.exception",
    "name": "zope.app.exception",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "zope3 exception view",
    "author": "Zope Corporation and Contributors",
    "author_email": "zope-dev@zope.dev",
    "download_url": "https://files.pythonhosted.org/packages/51/c3/a2c92f73bd16491d8ce2a41867e70a7520dc08e3dcbe284570c176d80e33/zope.app.exception-5.0.tar.gz",
    "platform": null,
    "description": "This packages provides Zope 3 browser views for some generic exceptions.\n\n\n.. contents::\n\nSystem Errors\n=============\n\nSystem Errors are errors representing a system failure.  At the\napplication level, they are errors that are uncaught by the\napplication and that a developer hasn't provided a custom error view\nfor.\n\nZope provides a default system error view that prints an obnoxius\nterse message and that sets the response status.\n\nThere is a simple view registered in ``ftesting.zcml`` which raises\n``Exception()``:\n\n  >>> print(http(r\"\"\"\n  ... GET /error.html HTTP/1.1\n  ... \"\"\"))\n  HTTP/1.1 500 Internal Server Error\n  ...\n    A system error occurred.\n  ...\n\nAnother way of getting a system error is the occurrence of a system\nerror, such as ``ComponentLookupError``. I have registered a simple\nview in ``ftesting.zcml``, too, that will raise a component lookup\nerror. So if we call ``componentlookuperror.html``, we should get the\nerror message:\n\n  >>> print(http(r\"\"\"\n  ... GET /componentlookuperror.html HTTP/1.1\n  ... \"\"\"))\n  HTTP/1.1 500 Internal Server Error\n  ...\n    A system error occurred.\n  ...\n\n\nCHANGES\n=======\n\n5.0 (2023-02-07)\n----------------\n\n- Add support for Python 3.10, 3.11.\n\n- Drop support for Python 2.7, 3.5, 3.6.\n\n\n4.1.0 (2021-03-22)\n------------------\n\n- Add support for Python 3.7, 3.8 and 3.9.\n\n- Drop support for Python 3.4.\n\n- Fix tests to run with ``zope.component >= 5``.\n\n\n4.0.1 (2017-05-15)\n------------------\n\n- Fix rendering of user errors on Python 3.\n  See `issue 2 <https://github.com/zopefoundation/zope.app.exception/issues/2>`_.\n\n\n4.0.0 (2017-05-01)\n------------------\n\n- Add support for PyPy, and Python 3.4, 3.5 and 3.6.\n\n- Remove test dependency on ``zope.app.testing``,\n  ``zope.app.zcmlfiles`` and many others.\n\n3.6.3 (2011-05-23)\n------------------\n\n- Replaced an undeclared test dependency on ``zope.app.authentication`` with\n  ``zope.password``.\n\n\n3.6.2 (2010-09-14)\n------------------\n\n- No longer depend on ``zope.app.zptpage`` for tests.\n\n- Replaced dependency on ``zope.app.securitypolicy`` by\n  ``zope.securitypolicy``.\n\n\n3.6.1 (2010-01-08)\n------------------\n\n- Require zope.browserpage which now contains ``namedtemplate``.\n\n- Fix ftesting.zcml due to ``zope.securitypolicy`` update.\n\n- Fix tests using a newer zope.publisher that requires zope.login.\n\n3.6.0 (2009-05-18)\n------------------\n\n- ``ISystemErrorView`` interface has been moved to\n  ``zope.browser.interfaces``, leaving BBB import here.\n\n- Cut dependency on ``zope.formlib`` by requiring newer version of\n  ``zope.app.pagetemplate`` which now contains ``namedtemplate``.\n\n\n3.5.0 (2009-04-06)\n------------------\n\n- Use new ``zope.authentication`` instead of ``zope.app.security``.\n\n- Removed deprecated code and thus removed dependency on zope.deferredimport.\n\n- Removed old zpkg-related SETUP.cfg file.\n\n3.4.2 (2009-01-27)\n------------------\n\n- Substitute zope.app.zapi by direct calls to its wrapped apis. See\n  bug 219302.\n\n- Fixed author email and home page.\n\n\n3.4.1 (2007-10-31)\n------------------\n\n- Resolve ``ZopeSecurityPolicy`` deprecation warning.\n\n\n3.4.0 (2007-10-24)\n------------------\n\n- Initial release independent of the main Zope tree.\n",
    "bugtrack_url": null,
    "license": "ZPL 2.1",
    "summary": "Zope 3 exception views",
    "version": "5.0",
    "split_keywords": [
        "zope3",
        "exception",
        "view"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cde3bde64805f216c53a0f62f23e5992c76f64202bf949eed8811efeb4d40b73",
                "md5": "16b0f9c497fa80ea8ee12640a8639a73",
                "sha256": "3bca4b21817f51cc1e525f2658cb6ad55c1d96c095937923f94132b70cb28936"
            },
            "downloads": -1,
            "filename": "zope.app.exception-5.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "16b0f9c497fa80ea8ee12640a8639a73",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 17035,
            "upload_time": "2023-02-07T09:35:57",
            "upload_time_iso_8601": "2023-02-07T09:35:57.409834Z",
            "url": "https://files.pythonhosted.org/packages/cd/e3/bde64805f216c53a0f62f23e5992c76f64202bf949eed8811efeb4d40b73/zope.app.exception-5.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "51c3a2c92f73bd16491d8ce2a41867e70a7520dc08e3dcbe284570c176d80e33",
                "md5": "5ab868d0408384dc6b6a4f4ad10d6bbd",
                "sha256": "3d65d6cdd008aa21bc891fe663a8440d566b1a8def1713e1a87ad3f4b9ade5bd"
            },
            "downloads": -1,
            "filename": "zope.app.exception-5.0.tar.gz",
            "has_sig": false,
            "md5_digest": "5ab868d0408384dc6b6a4f4ad10d6bbd",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 13346,
            "upload_time": "2023-02-07T09:35:59",
            "upload_time_iso_8601": "2023-02-07T09:35:59.402949Z",
            "url": "https://files.pythonhosted.org/packages/51/c3/a2c92f73bd16491d8ce2a41867e70a7520dc08e3dcbe284570c176d80e33/zope.app.exception-5.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-02-07 09:35:59",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "zope.app.exception"
}
        
Elapsed time: 0.08490s