zope.globalrequest


Namezope.globalrequest JSON
Version 2.0 PyPI version JSON
download
home_pagehttps://github.com/zopefoundation/zope.globalrequest
SummaryGlobal way of retrieving the currently active request.
upload_time2023-03-27 09:41:13
maintainer
docs_urlNone
authorZope Foundation and Contributors
requires_python>=3.7
licenseZPL
keywords zope request global
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            

Introduction
------------

This package provides a contextless way to retrieve the currently active request object in a zope-based web framework.
To do so you simply need to do the following::

    from zope.globalrequest import getRequest
    request = getRequest()

This package is mainly intended to be used with the Zope/Plone stack.
While it also works with the Zope3 framework,
the latter promotes a clean separation of concerns and the pattern of having a globally available request object is discouraged.

Changelog
=========

2.0 (2023-03-27)
----------------

- Drop support for Python 2.7, 3.5, 3.6.

- Mention Python 3.11 support in trove classifiers.


1.6 (2022-10-18)
----------------

- Add support for Python 3.8, 3.9, 3.10 and 3.11

- Drop support for Python 3.4.


1.5 (2018-10-04)
----------------

- Add support for Python 3.7.


1.4 (2017-05-29)
----------------

- Turn functional tests into better covering unit tests and also add more tests.
  This removes test dependencies on unrelated packages.


1.3 (2016-10-22)
----------------

- Python 3 compatibility.


1.2 (2016-06-07)
----------------

- Lighten test dependencies by using neither `zope.app.testing` nor
  `zope.app.zcmlfiles` any longer.


1.1 (2015-04-29)
----------------

- Fix import locations and declare all dependencies.
  [thet]


1.0 (2010-08-07)
----------------

- Fix test setup regarding `zope.securitypolicy`.
  [ldr]


1.0a2 (2009-01-17)
------------------

- Update documentation to clarify the intentions of this package.  Also see
  http://thread.gmane.org/gmane.comp.web.zope.devel/18023 for more information.
  [witsch]


1.0a1 (2009-01-15)
------------------

- Initial release
  [witsch]

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/zopefoundation/zope.globalrequest",
    "name": "zope.globalrequest",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "zope request global",
    "author": "Zope Foundation and Contributors",
    "author_email": "zope-dev@zope.dev",
    "download_url": "https://files.pythonhosted.org/packages/10/3a/ae324d6de3cb543f21d94b635b0344db09ad4e531e7e33b4c88e5a2e18cf/zope.globalrequest-2.0.tar.gz",
    "platform": "Any",
    "description": "\n\nIntroduction\n------------\n\nThis package provides a contextless way to retrieve the currently active request object in a zope-based web framework.\nTo do so you simply need to do the following::\n\n    from zope.globalrequest import getRequest\n    request = getRequest()\n\nThis package is mainly intended to be used with the Zope/Plone stack.\nWhile it also works with the Zope3 framework,\nthe latter promotes a clean separation of concerns and the pattern of having a globally available request object is discouraged.\n\nChangelog\n=========\n\n2.0 (2023-03-27)\n----------------\n\n- Drop support for Python 2.7, 3.5, 3.6.\n\n- Mention Python 3.11 support in trove classifiers.\n\n\n1.6 (2022-10-18)\n----------------\n\n- Add support for Python 3.8, 3.9, 3.10 and 3.11\n\n- Drop support for Python 3.4.\n\n\n1.5 (2018-10-04)\n----------------\n\n- Add support for Python 3.7.\n\n\n1.4 (2017-05-29)\n----------------\n\n- Turn functional tests into better covering unit tests and also add more tests.\n  This removes test dependencies on unrelated packages.\n\n\n1.3 (2016-10-22)\n----------------\n\n- Python 3 compatibility.\n\n\n1.2 (2016-06-07)\n----------------\n\n- Lighten test dependencies by using neither `zope.app.testing` nor\n  `zope.app.zcmlfiles` any longer.\n\n\n1.1 (2015-04-29)\n----------------\n\n- Fix import locations and declare all dependencies.\n  [thet]\n\n\n1.0 (2010-08-07)\n----------------\n\n- Fix test setup regarding `zope.securitypolicy`.\n  [ldr]\n\n\n1.0a2 (2009-01-17)\n------------------\n\n- Update documentation to clarify the intentions of this package.  Also see\n  http://thread.gmane.org/gmane.comp.web.zope.devel/18023 for more information.\n  [witsch]\n\n\n1.0a1 (2009-01-15)\n------------------\n\n- Initial release\n  [witsch]\n",
    "bugtrack_url": null,
    "license": "ZPL",
    "summary": "Global way of retrieving the currently active request.",
    "version": "2.0",
    "split_keywords": [
        "zope",
        "request",
        "global"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fa686b21fd5c6f0f84d3e99e2c782159328ea4a4ee26eacd58e39ce9d2ff177c",
                "md5": "4328acf343b8743984a1ac585148c68f",
                "sha256": "372fdb35188377a4b41b767fe5d103c0bed97e9e3f37c64d56c238a919fa1819"
            },
            "downloads": -1,
            "filename": "zope.globalrequest-2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "4328acf343b8743984a1ac585148c68f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 5678,
            "upload_time": "2023-03-27T09:41:12",
            "upload_time_iso_8601": "2023-03-27T09:41:12.500366Z",
            "url": "https://files.pythonhosted.org/packages/fa/68/6b21fd5c6f0f84d3e99e2c782159328ea4a4ee26eacd58e39ce9d2ff177c/zope.globalrequest-2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "103aae324d6de3cb543f21d94b635b0344db09ad4e531e7e33b4c88e5a2e18cf",
                "md5": "9c1fea63bf9b1be18987f46a7050963d",
                "sha256": "2b1f4b2ec549c7baf381b0882be58569c327ec2171d1b0aa0f4c7b23630836ab"
            },
            "downloads": -1,
            "filename": "zope.globalrequest-2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "9c1fea63bf9b1be18987f46a7050963d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 6623,
            "upload_time": "2023-03-27T09:41:13",
            "upload_time_iso_8601": "2023-03-27T09:41:13.979826Z",
            "url": "https://files.pythonhosted.org/packages/10/3a/ae324d6de3cb543f21d94b635b0344db09ad4e531e7e33b4c88e5a2e18cf/zope.globalrequest-2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-03-27 09:41:13",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "zopefoundation",
    "github_project": "zope.globalrequest",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "zope.globalrequest"
}
        
Elapsed time: 0.06579s