{ "info": { "author": "Zope Corporation and Contributors", "author_email": "zope-dev@zope.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Framework :: Zope3", "Intended Audience :: Developers", "License :: OSI Approved :: Zope Public License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP", "Topic :: Software Development" ], "description": "Zope application programming interface\n**************************************\n\n.. contents::\n\nCHANGES\n=======\n\n3.5.0 (2011-03-01)\n------------------\n\n- Removed BBB imports of deprecated parts (services, multiviews etc.) which\n were removed in ``zope.component`` 3.6, thus requiring at least this\n version.\n\n- Using Python's ``doctest`` module instead of depreacted\n ``zope.testing.doctest``.\n\n3.4.1 (2009-07-23)\n------------------\n\n- Explicitely list all dependencies. Fixes test failures.\n\n\n3.4.0 (2007-10-03)\n------------------\n\n- Initial public release as an individual package.\n\nZope Application Programming Interface\n======================================\n\nThis package provides a collection of commonly used APIs to make\nimports simpler.\n\nMostly, the APIs provided here are imported from elsewhere. A few are\nprovided here.\n\nprincipals()\n------------\n\nThe principals method returns the authentication service. If no\nservice is defined, a ComponentLookupError is raised:\n\n >>> from zope.app import zapi\n >>> zapi.principals() #doctest: +NORMALIZE_WHITESPACE\n Traceback (most recent call last):\n ...\n ComponentLookupError:\n (, '')\n\n\nBut if we provide an authentication service:\n\n >>> import zope.interface\n >>> from zope.authentication.interfaces import IAuthentication\n >>> class FakeAuthenticationUtility:\n ... zope.interface.implements(IAuthentication)\n >>> fake = FakeAuthenticationUtility()\n\n >>> from zope.app.testing import ztapi\n >>> ztapi.provideUtility(IAuthentication, fake)\n\nThen we should be able to get the service back when we ask for the\nprincipals:\n\n >>> zapi.principals() is fake\n True\n\n\n\n\nDownload\n========", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://pypi.python.org/pypi/zope.app.zapi", "keywords": null, "license": "ZPL 2.1", "maintainer": null, "maintainer_email": null, "name": "zope.app.zapi", "package_url": "https://pypi.org/project/zope.app.zapi/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/zope.app.zapi/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://pypi.python.org/pypi/zope.app.zapi" }, "release_url": "https://pypi.org/project/zope.app.zapi/3.5.0/", "requires_dist": null, "requires_python": null, "summary": "Zope application programming interface", "version": "3.5.0" }, "last_serial": 805081, "releases": { "3.4.0": [ { "comment_text": "", "digests": { "md5": "5cf576be2c4c2f2f16ac7bcbb76336fb", "sha256": "0cc30e81631113c311fa8993467f35c21450cf3034d58064cd3177d11fe176e1" }, "downloads": -1, "filename": "zope.app.zapi-3.4.0.tar.gz", "has_sig": false, "md5_digest": "5cf576be2c4c2f2f16ac7bcbb76336fb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5244, "upload_time": "2007-10-03T05:25:39", "url": "https://files.pythonhosted.org/packages/25/a0/d0387fd16357d1c2e780f71734d83ef78fa790b2c5540970e3268bddd8be/zope.app.zapi-3.4.0.tar.gz" } ], "3.4.0a1": [ { "comment_text": "", "digests": { "md5": "ba40c802f162e9f1fb4b98f45da2e2e0", "sha256": "77690744b5e2981d80c8272674cfdcfc4ac1e95e5f2276ae716a8c2d8fa20fec" }, "downloads": -1, "filename": "zope.app.zapi-3.4.0a1.tar.gz", "has_sig": false, "md5_digest": "ba40c802f162e9f1fb4b98f45da2e2e0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4609, "upload_time": "2007-04-23T13:33:29", "url": "https://files.pythonhosted.org/packages/ee/f0/ef74fe26235c66de9ce494f92cfe31042835fad30729f4546a5be03c4cf9/zope.app.zapi-3.4.0a1.tar.gz" } ], "3.4.1": [ { "comment_text": "", "digests": { "md5": "43056568e653c12c857dba1ea35f9657", "sha256": "3c03f1248975387e0337f79f09c8b5029eb534243d5d94f7eb034c8d45e835b1" }, "downloads": -1, "filename": "zope.app.zapi-3.4.1.tar.gz", "has_sig": false, "md5_digest": "43056568e653c12c857dba1ea35f9657", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5319, "upload_time": "2009-07-23T09:16:59", "url": "https://files.pythonhosted.org/packages/d2/51/955b94fb48ad5eb95b9cbeb81155e6e5ca31f81be451eff347a3596baf7d/zope.app.zapi-3.4.1.tar.gz" } ], "3.5.0": [ { "comment_text": "", "digests": { "md5": "2196486136eda9cffd4cca0ed8330d14", "sha256": "1af828759934b3db7024d4b219d94e337a16fac92793202e4791e4278e52e67b" }, "downloads": -1, "filename": "zope.app.zapi-3.5.0.tar.gz", "has_sig": false, "md5_digest": "2196486136eda9cffd4cca0ed8330d14", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6151, "upload_time": "2011-03-01T13:02:31", "url": "https://files.pythonhosted.org/packages/6d/40/bc9f0b75bf859b6d6ae7273456b994b8eaca61bf7e6714e2f68535ae5ba4/zope.app.zapi-3.5.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2196486136eda9cffd4cca0ed8330d14", "sha256": "1af828759934b3db7024d4b219d94e337a16fac92793202e4791e4278e52e67b" }, "downloads": -1, "filename": "zope.app.zapi-3.5.0.tar.gz", "has_sig": false, "md5_digest": "2196486136eda9cffd4cca0ed8330d14", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6151, "upload_time": "2011-03-01T13:02:31", "url": "https://files.pythonhosted.org/packages/6d/40/bc9f0b75bf859b6d6ae7273456b994b8eaca61bf7e6714e2f68535ae5ba4/zope.app.zapi-3.5.0.tar.gz" } ] }