{ "info": { "author": "Zope Foundation and Contributors", "author_email": "zope-dev@zope.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Zope3", "Intended Audience :: Developers", "License :: OSI Approved :: Zope Public License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP" ], "description": "This package provides a minimal layer setup for Zope3.\n\n\n.. contents::\n\n\n================================\nMinimal Browser Layer for Zope 3\n================================\n\nThis package contains the minimal layer. This layer supports a correct set of\ncomponent registration and can be used for inheritation in custom skins.\n\nRight now the default implementation in Zope3 has different restriction in the\ntraversal concept and use to much registration on the default layer.\n\n\n``IMinimalBrowserLayer`` Interface\n----------------------------------\n\nThe minimal layer is useful for build custom presentation skins without access\nto ZMI menus like `zmi_views` etc. This means there is no menu item registred\nif you use this layer.\n\nThis layer is NOT derived from ``IDefaultBrowserLayer``. Therefore it provides\nonly a minimal set of the most important public views such as\n``@@absolute_url``. The following packages are accounted:\n\n- ``zope.app.http.exception``\n- ``zope.app.publication``\n- ``zope.app.publisher.browser``\n- ``zope.app.traversing``\n- ``zope.app.traversing.browser``\n\n\nTesting\n-------\n\nFor testing the ``IMinimalBrowserLayer`` layer we use the testing skin defined\nin the tests package which uses the ``IMinimalBrowserLayer`` layer as the only\nbase layer. This means, that our testing skin provides only the views defined\nin the minimal package and it's testing views defined in tests.\n\nLogin as manager first:\n\n >>> from zope.testbrowser.testing import Browser\n >>> manager = Browser()\n >>> manager.addHeader('Authorization', 'Basic mgr:mgrpw')\n\nCheck if we can access the page.html view which is registred in the\nftesting.zcml file with our skin:\n\n >>> manager = Browser()\n >>> manager.addHeader('Authorization', 'Basic mgr:mgrpw')\n >>> skinURL = 'http://localhost/++skin++MinimalTesting'\n >>> manager.open(skinURL + '/page.html')\n >>> manager.url\n 'http://localhost/++skin++MinimalTesting/page.html'\n\n >>> print manager.contents\n \n \n \n testing\n \n \n \n test page\n \n \n \n \n \n\nNow check the not found page which is a exception view on the exception\n``zope.publisher.interfaces.INotFound``:\n\n >>> manager.open(skinURL + '/foobar.html')\n Traceback (most recent call last):\n ...\n HTTPError: HTTP Error 404: Not Found\n\n >>> print manager.contents\n \n \n \n testing\n \n \n
\n
\n
\n

\n The page you are trying to access is not available\n

\n
\n \n Please try the following:\n \n
\n
    \n
  1. \n Make sure that the Web site address is spelled correctly.\n
  2. \n
  3. \n \n Go back and try another URL.\n \n
  4. \n
\n
\n \n \n \n \n\nAnd check the user error page which is a view registred for\n``zope.exceptions.interfaces.IUserError`` exceptions:\n\n >>> manager.open(skinURL + '/@@usererror.html')\n >>> print manager.contents\n \n \n \n testing\n \n \n
\n
simply user error
\n
\n \n \n \n \n\nAnd check error view registred for\n``zope.interface.common.interfaces.IException``:\n\n >>> manager.open(skinURL + '/@@systemerror.html')\n >>> print manager.contents\n \n \n \n testing\n \n \n
\n
\n
\n

A system error occurred

\n
\n Please contact the administrator.\n \n Go back and try another URL.\n \n
\n \n \n \n \n\nAnd check the ``zope.security.interfaces.IUnauthorized`` view, use a new\nunregistred user (test browser) for this:\n\n >>> unauthorized = Browser()\n >>> unauthorized.open(skinURL + '/@@forbidden.html')\n Traceback (most recent call last):\n ...\n HTTPError: HTTP Error 401: Unauthorized\n\n >>> print unauthorized.contents\n \n \n \n testing\n \n \n
\n \n

Unauthorized

\n \n

You are not authorized

\n \n
\n \n \n \n \n\n\n=======\nCHANGES\n=======\n\n1.2.1 (2009-06-19)\n------------------\n\n- Remove the zcml slug file and the SETUP.cfg file for zpkg.\n\n- Added missing dependency on ``zope.app.exception``.\n\n\n1.2.0 (2009-02-21)\n------------------\n\n- **Security issue:** The traverser defined for\n ``IMinimalBrowserLayer`` was a trusted adapter, so the security\n proxy got removed from each traversed object. Thus all sub-objects\n were publically accessable, too.\n\n\n1.1.0 (2009-02-19)\n------------------\n\n- Fixed dependency warning about ISite.\n\n- Fixed tests to work with newer zope.testbrowser.\n\n- Using ``zope.container`` instead of ``zope.app.container``.\n\n- Made sure that long_description renders properly on pypi.\n\n\n1.0.1 (2008-01-24)\n------------------\n\n- Bug: Improved meta-data.\n\n\n1.0.0 (2008-01-21)\n------------------\n\n- Restructure: Move ``z3c.layer.minimal`` package to it's own top level\n package from ``z3c.layer`` to ``z3c.layer.minimal``.\n\n\n0.2.3 (2007-11-07)\n------------------\n\n- Forward-Bug: Due to a bug in mechanize, the testbrowser throws\n ``httperror_seek_wrapper`` instead of ``HTTPError`` errors. Thanks to RE\n normalizers, the code will now work whether the bug is fixed or not in\n mechanize.\n\n\n0.2.2 (2007-10-31)\n------------------\n\n- Bug: Fixed package meta-data.\n\n- Bug: Fixed test failures due to depency updates.\n\n- Restructure: Fixed deprecation warninf for ``ZopeSecurityPolicy``.\n\n\n0.2.1 (2007-??-??)\n------------------\n\n- Changes unknown.\n\n\n0.2.0 (2007-??-??)\n------------------\n\n- Initial release.", "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/z3c.layer.minimal", "keywords": "z3c minimal layer zope zope3", "license": "ZPL 2.1", "maintainer": null, "maintainer_email": null, "name": "z3c.layer.minimal", "package_url": "https://pypi.org/project/z3c.layer.minimal/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/z3c.layer.minimal/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://pypi.python.org/pypi/z3c.layer.minimal" }, "release_url": "https://pypi.org/project/z3c.layer.minimal/1.2.1/", "requires_dist": null, "requires_python": null, "summary": "Minimal layer setup for Zope3", "version": "1.2.1" }, "last_serial": 802041, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "09a7e4ec0f7ca95ecc3ec33c4b47172f", "sha256": "a9d8d8d58116abfbf5afb863ec1c26a660edd10fb7898c27072f223189a19cc1" }, "downloads": -1, "filename": "z3c.layer.minimal-1.0.0.tar.gz", "has_sig": false, "md5_digest": "09a7e4ec0f7ca95ecc3ec33c4b47172f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11583, "upload_time": "2008-01-21T04:27:37", "url": "https://files.pythonhosted.org/packages/7c/45/52aa633d45f1cb1ca850518a9dd82371222f05eb987180c4ba0a4a6e3202/z3c.layer.minimal-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "0234f63c496c623654d4f72c8aa342c2", "sha256": "cef721f236119871541aee91b9a9435327a3ec29a3934bcbdbe14651eaf59612" }, "downloads": -1, "filename": "z3c.layer.minimal-1.0.1.tar.gz", "has_sig": false, "md5_digest": "0234f63c496c623654d4f72c8aa342c2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11764, "upload_time": "2008-01-25T02:07:26", "url": "https://files.pythonhosted.org/packages/2d/9e/90f2ed02d0d9d113b3056cff219b233e2058f20fe9987eb31987591dfb27/z3c.layer.minimal-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "8a275654327e6dfeaa30eb2f7f9b95ac", "sha256": "f6ece37689d78a0bbaf071b061e60c9b124799670b79af692541b5c0d99b4465" }, "downloads": -1, "filename": "z3c.layer.minimal-1.0.2.tar.gz", "has_sig": false, "md5_digest": "8a275654327e6dfeaa30eb2f7f9b95ac", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13903, "upload_time": "2010-04-18T01:08:47", "url": "https://files.pythonhosted.org/packages/d3/a5/f26e14ceefa96e8d7d6bc17e5ebcea3b17dba68adc03b17c94a6a2e1fc4a/z3c.layer.minimal-1.0.2.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "7667ab14f20570565ea0cc114badda93", "sha256": "41d8e8bf592c60c26dae0e30e22c932c5d4aa6f62deb36f2283325d565e7d520" }, "downloads": -1, "filename": "z3c.layer.minimal-1.1.0.tar.gz", "has_sig": false, "md5_digest": "7667ab14f20570565ea0cc114badda93", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13265, "upload_time": "2009-02-19T18:16:41", "url": "https://files.pythonhosted.org/packages/1a/0a/2f7cd3a7f6fe76fb10e0c495fa7b6bfab5c729d9903e3f948817390c36fb/z3c.layer.minimal-1.1.0.tar.gz" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "20ccb6c514d611553f573b8da9c342d9", "sha256": "61c9d0e5d291afb7545e83a3e33a8d8f565f83a4911661de9ea16e2c86239843" }, "downloads": -1, "filename": "z3c.layer.minimal-1.2.0.tar.gz", "has_sig": false, "md5_digest": "20ccb6c514d611553f573b8da9c342d9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13915, "upload_time": "2009-02-21T15:16:14", "url": "https://files.pythonhosted.org/packages/07/da/93a52d3e715778d9c0b206ec159956f56c00b97bdecbeaff3924bcdcfe3c/z3c.layer.minimal-1.2.0.tar.gz" } ], "1.2.1": [ { "comment_text": "", "digests": { "md5": "54315951c90d7e8ccf7f4b6c17ecfdc0", "sha256": "45ddcf8994c0c6f776f5d6b6e3436d7a0ba80231f2ce915c84e99e066248488c" }, "downloads": -1, "filename": "z3c.layer.minimal-1.2.1.tar.gz", "has_sig": false, "md5_digest": "54315951c90d7e8ccf7f4b6c17ecfdc0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13940, "upload_time": "2009-06-19T21:10:49", "url": "https://files.pythonhosted.org/packages/36/1e/e35138406a69247c03ca74445e16b3d5ff5a301e6d2f21a284606124d5d7/z3c.layer.minimal-1.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "54315951c90d7e8ccf7f4b6c17ecfdc0", "sha256": "45ddcf8994c0c6f776f5d6b6e3436d7a0ba80231f2ce915c84e99e066248488c" }, "downloads": -1, "filename": "z3c.layer.minimal-1.2.1.tar.gz", "has_sig": false, "md5_digest": "54315951c90d7e8ccf7f4b6c17ecfdc0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13940, "upload_time": "2009-06-19T21:10:49", "url": "https://files.pythonhosted.org/packages/36/1e/e35138406a69247c03ca74445e16b3d5ff5a301e6d2f21a284606124d5d7/z3c.layer.minimal-1.2.1.tar.gz" } ] }