zope.app.publisher


Namezope.app.publisher JSON
Version 5.0 PyPI version JSON
download
home_pagehttps://github.com/zopefoundation/zope.app.publisher/
SummaryImplementations and means for configuration of Zope 3-style views and resources.
upload_time2023-02-10 09:26:49
maintainer
docs_urlNone
authorZope Corporation and Contributors
requires_python>=3.7
licenseZPL 2.1
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ========
Overview
========

*This package is at present not reusable without depending on a large
chunk of the Zope Toolkit and its assumptions. It is maintained by the*
`Zope Toolkit project <http://docs.zope.org/zopetoolkit/>`_.

This package used to provide browser page, resource and menu classes
for use with zope.publisher object publishing framework, as well as some
other useful utilities and adapters, but most of things was factored out
to separate packages, leaving here only backward-compatibility imports.

However, some potentially useful things are still contained in this package:

 * "date" field converter for zope.publisher's BrowserRequest field converter
   mechanism.
 
 * "Browser Skins" vocabulary (a vocabulary for IBrowserSkinType utilities)
 
 * ManagementViewSelector (a browser view that redirects to a first available
   management view)

 * XML-RPC view and method publishing mechanism along with xmlrpc:view ZCML
   directive.


=========
 CHANGES
=========

5.0 (2023-02-10)
================

- Add support for Python 3.9, 3.10, 3.11.

- Drop support for Python 2.7, 3.5, 3.6.

- Make ``.xmlrpc.testing.ServerProxy`` set an appropriate ``Host`` header in
  its request, allowing WSGI applications that serve multiple virtual hosts
  to tell the difference between them.


4.3.1 (2020-06-08)
==================

- Fix handling of HTTP body in ``.xmlrpc.testing`` to enable characters
  beyond ASCII.
  (`#11 <https://github.com/zopefoundation/zope.app.publisher/issues/11>`_)


4.3.0 (2020-05-12)
==================

- Support options *use_datetime* (Python >= 2.7) and *use_builtin_types*
  (`Python >= 3.5`) in ``.xmlrpc.testing.ServerProxy``.


4.2.0 (2019-12-05)
==================

- Move XMLRPC testing infrastructure from ``.xmlrpc.tests`` to
  ``.xmlrpc.testing`` and make it reusable by requiring the WSGI app to be
  provided. Use the ``testing`` extra from `setup.py` to use this testing
  infrastructure.
  (`#8 <https://github.com/zopefoundation/zope.app.publisher/pull/8>`_)

- Add support for Python 3.8.

- Drop support for Python 3.4.


4.1.0 (2018-10-22)
==================

- Add support for Python 3.7.


4.0.0 (2017-05-05)
==================

- Add support for Python 3.4, 3.5, 3.6 and PyPy.

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

- Removed test dependency on ``zope.app.testing``,
  ``zope.app.zcmlfiles`` and others.

3.10.2 (2010-09-14)
===================

- Remove a testing dependency on zope.app.securitypolicy.

3.10.1 (2010-01-08)
===================

- Fix tests using a newer zope.publisher that requires zope.login.

3.10.0 (2009-08-31)
===================

- Fix test dependency on zope.container, now we depend on
  zope.container >= 3.9.

3.9.0 (2009-08-27)
==================

Refactor package, spliting it to several new packages:

   * ``zope.browserresource`` - the resources mechanism was moved here, see its
     CHANGES.txt for more information about changes during move.

   * ``zope.ptresource`` - the page template resource was moved into another
     package so zope.browserresource doesn't depend on any templating system.
     See zope.ptresource's CHANGES.txt for more information.

   * ``zope.browsermenu`` - the menu mechanism was moved here completely.

   * ``zope.browserpage`` - the browser:page directive and friends were
     moved here. Also, these directives don't depend hardly on menu system
     anymore, so they simply ignore the "menu" argument when zope.browsermenu
     is not available.

Backward-compatibility imports are provided, so there should not be much impact
for those who uses old imports.

The CacheableBrowserLanguages and ModifiableBrowserLanguages adapters were
moved into ``zope.publisher`` package, as well as browser:defaultSkin and
browser:defaultView ZCML directives and ZCML class configuration for
zope.publisher classes.

ZCML registrations of IXMLRPCPublisher adapters for zope.container were moved
into zope.container for now.


3.8.4 (2009-07-23)
==================

- Added dependency on ``zope.app.pagetemplate``, it is used by
  ``zope.app.publisher.browser.viewmeta``.

3.8.3 (2009-06-18)
==================

- Bugfix: Fix ``IAbsoluteURL`` for ``IResource`` configuration. The latest
  release was moving the url generation for resources to an adapter which was
  a good idea. But the adapter was configured for
  ``IDefaultBrowserLayer``. This means every existing project which dosen't
  use ``IDefaultBrowserLayer`` will get a wrong ``IAbsoluteURL`` adapter and
  is loosing the ``@@`` part in the resource url.


3.8.2 (2009-06-16)
==================

- Remove test dependency on ``zope.app.pagetemplate``.

- Calling a resource to get its URL now uses ``IAbsoluteURL``.

3.8.1 (2009-05-25)
==================

- Updated to use ``zope.pagetemplate.engine`` module (requires versino
  3.5.0 or later), instead of ``zope.app.pagetemplate`` precursor.

- Replaced ``zope.deprecation`` dependency with BBB imports

3.8.0 (2009-05-23)
==================

- There is no direct dependency on zope.app.component anymore (even in
  the tests).

- Moved the publicationtraverse module to zope.traversing, removing the
  zope.app.publisher -> zope.app.publication dependency (which was a
  cycle).

- Moved the DefaultViewName API from zope.app.publisher.browser to
  zope.publisher.defaultview, making it accessible to other packages
  that need it.

3.7.0 (2009-05-22)
==================

- Use zope.componentvocabulary instead of zope.app.component
  (except for tests and IBasicViewInformation).

- Use zope.browser for IAdding interface (instead of zope.app.container)

- Update references to ``zope.app.component.tests.views`` to point to the new
  locations in ``zope.component.testfiles.views``.

3.6.2 (2009-03-18)
==================

- Register ``IModifiableUserPreferredLanguages`` adapter in the ZCML
  configuration of ``zope.app.publisher.browser`` package. This was previously
  done by ``zope.app.i18n``.

3.6.1 (2009-03-12)
==================

- Remove deprecated code.

- Adapt to removal of deprecated interfaces from zope.component.interfaces.
  The IResource is now moved to zope.app.publisher.interfaces. The IView
  and IDefaultViewName is now in zope.publisher.interfaces. The IPresentation
  interface was removed completely.

3.6.0 (2009-01-31)
==================

- Use zope.container instead of zope.app.container.

- Use zope.site.folder instead of zope.app.folder.

3.5.3 (2009-01-27)
==================

- Finally removed <browser:skin> and <browser:layer> that were marked as
  deprecated in 2006/02.

3.5.2 (2008-12-06)
==================

- Added possibility to specify custom item class in menuItem, subMenuItem
  and addMenuItem directives using the ``item_class`` argument (LP #291865).

- Menu items registered with <browser:page/> were not re-registered after the
  first functional test layer ran. In any subsequent functional test layer the
  items where not availabe (introduced in 3.5.0a3).

- Added a hook to specify a different BaseURL for resources. This makes sense
  if you want to put resources on a Content Delivery Network. All you need to
  do is to register an named Adapter 'resource' that implements IAbsoluteURL.

3.5.1 (2008-10-13)
==================

- Removed usage of deprecated LayerField from zope.app.component.back35.

3.5.0 (2008-08-05)
==================

- Refactored code to provide more hooks when deriving code from this pacakge.

  * A resource's URL creation is now in its own method.

  * The resource class of factories can be overwritten.

  * The cache timeout value can now be set as a class or instance attribute.

3.5.0a4 (2007-12-28)
====================

- Backed out the changes for the controversial XML-RPC skin support.

3.5.0a3 (2007-11-27)
====================

- make it possible to override menus: this was not possible because new
  interfaces where created any time a menu with the same name was created.

- Resolve ``ZopeSecurityPolicy`` deprecation warning.

3.5.0a2 (2007-08-23)
====================

- <browser:defaultView> now accepts classes as well as interfaces.

3.5.0a1 (2007-08-21)
====================

- Added a `layer` attribute to `xmlrpc:view`. This works just like layers for
  `browser:view` etc. but uses the `IXMLRPCSkinType`.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/zopefoundation/zope.app.publisher/",
    "name": "zope.app.publisher",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "",
    "author": "Zope Corporation and Contributors",
    "author_email": "zope-dev@zope.dev",
    "download_url": "https://files.pythonhosted.org/packages/9a/92/d9780cb638083f4a2d72ebdda265c0d49be701fb782297a92d8924cb2cf1/zope.app.publisher-5.0.tar.gz",
    "platform": null,
    "description": "========\nOverview\n========\n\n*This package is at present not reusable without depending on a large\nchunk of the Zope Toolkit and its assumptions. It is maintained by the*\n`Zope Toolkit project <http://docs.zope.org/zopetoolkit/>`_.\n\nThis package used to provide browser page, resource and menu classes\nfor use with zope.publisher object publishing framework, as well as some\nother useful utilities and adapters, but most of things was factored out\nto separate packages, leaving here only backward-compatibility imports.\n\nHowever, some potentially useful things are still contained in this package:\n\n * \"date\" field converter for zope.publisher's BrowserRequest field converter\n   mechanism.\n \n * \"Browser Skins\" vocabulary (a vocabulary for IBrowserSkinType utilities)\n \n * ManagementViewSelector (a browser view that redirects to a first available\n   management view)\n\n * XML-RPC view and method publishing mechanism along with xmlrpc:view ZCML\n   directive.\n\n\n=========\n CHANGES\n=========\n\n5.0 (2023-02-10)\n================\n\n- Add support for Python 3.9, 3.10, 3.11.\n\n- Drop support for Python 2.7, 3.5, 3.6.\n\n- Make ``.xmlrpc.testing.ServerProxy`` set an appropriate ``Host`` header in\n  its request, allowing WSGI applications that serve multiple virtual hosts\n  to tell the difference between them.\n\n\n4.3.1 (2020-06-08)\n==================\n\n- Fix handling of HTTP body in ``.xmlrpc.testing`` to enable characters\n  beyond ASCII.\n  (`#11 <https://github.com/zopefoundation/zope.app.publisher/issues/11>`_)\n\n\n4.3.0 (2020-05-12)\n==================\n\n- Support options *use_datetime* (Python >= 2.7) and *use_builtin_types*\n  (`Python >= 3.5`) in ``.xmlrpc.testing.ServerProxy``.\n\n\n4.2.0 (2019-12-05)\n==================\n\n- Move XMLRPC testing infrastructure from ``.xmlrpc.tests`` to\n  ``.xmlrpc.testing`` and make it reusable by requiring the WSGI app to be\n  provided. Use the ``testing`` extra from `setup.py` to use this testing\n  infrastructure.\n  (`#8 <https://github.com/zopefoundation/zope.app.publisher/pull/8>`_)\n\n- Add support for Python 3.8.\n\n- Drop support for Python 3.4.\n\n\n4.1.0 (2018-10-22)\n==================\n\n- Add support for Python 3.7.\n\n\n4.0.0 (2017-05-05)\n==================\n\n- Add support for Python 3.4, 3.5, 3.6 and PyPy.\n\n- Replaced an undeclared test dependency on zope.app.authentication with\n  zope.password.\n\n- Removed test dependency on ``zope.app.testing``,\n  ``zope.app.zcmlfiles`` and others.\n\n3.10.2 (2010-09-14)\n===================\n\n- Remove a testing dependency on zope.app.securitypolicy.\n\n3.10.1 (2010-01-08)\n===================\n\n- Fix tests using a newer zope.publisher that requires zope.login.\n\n3.10.0 (2009-08-31)\n===================\n\n- Fix test dependency on zope.container, now we depend on\n  zope.container >= 3.9.\n\n3.9.0 (2009-08-27)\n==================\n\nRefactor package, spliting it to several new packages:\n\n   * ``zope.browserresource`` - the resources mechanism was moved here, see its\n     CHANGES.txt for more information about changes during move.\n\n   * ``zope.ptresource`` - the page template resource was moved into another\n     package so zope.browserresource doesn't depend on any templating system.\n     See zope.ptresource's CHANGES.txt for more information.\n\n   * ``zope.browsermenu`` - the menu mechanism was moved here completely.\n\n   * ``zope.browserpage`` - the browser:page directive and friends were\n     moved here. Also, these directives don't depend hardly on menu system\n     anymore, so they simply ignore the \"menu\" argument when zope.browsermenu\n     is not available.\n\nBackward-compatibility imports are provided, so there should not be much impact\nfor those who uses old imports.\n\nThe CacheableBrowserLanguages and ModifiableBrowserLanguages adapters were\nmoved into ``zope.publisher`` package, as well as browser:defaultSkin and\nbrowser:defaultView ZCML directives and ZCML class configuration for\nzope.publisher classes.\n\nZCML registrations of IXMLRPCPublisher adapters for zope.container were moved\ninto zope.container for now.\n\n\n3.8.4 (2009-07-23)\n==================\n\n- Added dependency on ``zope.app.pagetemplate``, it is used by\n  ``zope.app.publisher.browser.viewmeta``.\n\n3.8.3 (2009-06-18)\n==================\n\n- Bugfix: Fix ``IAbsoluteURL`` for ``IResource`` configuration. The latest\n  release was moving the url generation for resources to an adapter which was\n  a good idea. But the adapter was configured for\n  ``IDefaultBrowserLayer``. This means every existing project which dosen't\n  use ``IDefaultBrowserLayer`` will get a wrong ``IAbsoluteURL`` adapter and\n  is loosing the ``@@`` part in the resource url.\n\n\n3.8.2 (2009-06-16)\n==================\n\n- Remove test dependency on ``zope.app.pagetemplate``.\n\n- Calling a resource to get its URL now uses ``IAbsoluteURL``.\n\n3.8.1 (2009-05-25)\n==================\n\n- Updated to use ``zope.pagetemplate.engine`` module (requires versino\n  3.5.0 or later), instead of ``zope.app.pagetemplate`` precursor.\n\n- Replaced ``zope.deprecation`` dependency with BBB imports\n\n3.8.0 (2009-05-23)\n==================\n\n- There is no direct dependency on zope.app.component anymore (even in\n  the tests).\n\n- Moved the publicationtraverse module to zope.traversing, removing the\n  zope.app.publisher -> zope.app.publication dependency (which was a\n  cycle).\n\n- Moved the DefaultViewName API from zope.app.publisher.browser to\n  zope.publisher.defaultview, making it accessible to other packages\n  that need it.\n\n3.7.0 (2009-05-22)\n==================\n\n- Use zope.componentvocabulary instead of zope.app.component\n  (except for tests and IBasicViewInformation).\n\n- Use zope.browser for IAdding interface (instead of zope.app.container)\n\n- Update references to ``zope.app.component.tests.views`` to point to the new\n  locations in ``zope.component.testfiles.views``.\n\n3.6.2 (2009-03-18)\n==================\n\n- Register ``IModifiableUserPreferredLanguages`` adapter in the ZCML\n  configuration of ``zope.app.publisher.browser`` package. This was previously\n  done by ``zope.app.i18n``.\n\n3.6.1 (2009-03-12)\n==================\n\n- Remove deprecated code.\n\n- Adapt to removal of deprecated interfaces from zope.component.interfaces.\n  The IResource is now moved to zope.app.publisher.interfaces. The IView\n  and IDefaultViewName is now in zope.publisher.interfaces. The IPresentation\n  interface was removed completely.\n\n3.6.0 (2009-01-31)\n==================\n\n- Use zope.container instead of zope.app.container.\n\n- Use zope.site.folder instead of zope.app.folder.\n\n3.5.3 (2009-01-27)\n==================\n\n- Finally removed <browser:skin> and <browser:layer> that were marked as\n  deprecated in 2006/02.\n\n3.5.2 (2008-12-06)\n==================\n\n- Added possibility to specify custom item class in menuItem, subMenuItem\n  and addMenuItem directives using the ``item_class`` argument (LP #291865).\n\n- Menu items registered with <browser:page/> were not re-registered after the\n  first functional test layer ran. In any subsequent functional test layer the\n  items where not availabe (introduced in 3.5.0a3).\n\n- Added a hook to specify a different BaseURL for resources. This makes sense\n  if you want to put resources on a Content Delivery Network. All you need to\n  do is to register an named Adapter 'resource' that implements IAbsoluteURL.\n\n3.5.1 (2008-10-13)\n==================\n\n- Removed usage of deprecated LayerField from zope.app.component.back35.\n\n3.5.0 (2008-08-05)\n==================\n\n- Refactored code to provide more hooks when deriving code from this pacakge.\n\n  * A resource's URL creation is now in its own method.\n\n  * The resource class of factories can be overwritten.\n\n  * The cache timeout value can now be set as a class or instance attribute.\n\n3.5.0a4 (2007-12-28)\n====================\n\n- Backed out the changes for the controversial XML-RPC skin support.\n\n3.5.0a3 (2007-11-27)\n====================\n\n- make it possible to override menus: this was not possible because new\n  interfaces where created any time a menu with the same name was created.\n\n- Resolve ``ZopeSecurityPolicy`` deprecation warning.\n\n3.5.0a2 (2007-08-23)\n====================\n\n- <browser:defaultView> now accepts classes as well as interfaces.\n\n3.5.0a1 (2007-08-21)\n====================\n\n- Added a `layer` attribute to `xmlrpc:view`. This works just like layers for\n  `browser:view` etc. but uses the `IXMLRPCSkinType`.\n",
    "bugtrack_url": null,
    "license": "ZPL 2.1",
    "summary": "Implementations and means for configuration of Zope 3-style views and resources.",
    "version": "5.0",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "62f802e0e898a888826f93818c74392f888c34baefe7d2615dfcab736d964c30",
                "md5": "ed2ace02287caa348e7550fd34cda4d0",
                "sha256": "6824f3b9b587147cae6a418f7539225ceb2671a49eb2e5b7c89c2ac3d1619984"
            },
            "downloads": -1,
            "filename": "zope.app.publisher-5.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ed2ace02287caa348e7550fd34cda4d0",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 48267,
            "upload_time": "2023-02-10T09:26:46",
            "upload_time_iso_8601": "2023-02-10T09:26:46.768368Z",
            "url": "https://files.pythonhosted.org/packages/62/f8/02e0e898a888826f93818c74392f888c34baefe7d2615dfcab736d964c30/zope.app.publisher-5.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9a92d9780cb638083f4a2d72ebdda265c0d49be701fb782297a92d8924cb2cf1",
                "md5": "7ad4450ef3f0fdbdae0f13c5899c46e2",
                "sha256": "1c75258d3650590ce890f41935a4baae58849894272d81c32e89f08939adddff"
            },
            "downloads": -1,
            "filename": "zope.app.publisher-5.0.tar.gz",
            "has_sig": false,
            "md5_digest": "7ad4450ef3f0fdbdae0f13c5899c46e2",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 29519,
            "upload_time": "2023-02-10T09:26:49",
            "upload_time_iso_8601": "2023-02-10T09:26:49.578944Z",
            "url": "https://files.pythonhosted.org/packages/9a/92/d9780cb638083f4a2d72ebdda265c0d49be701fb782297a92d8924cb2cf1/zope.app.publisher-5.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-02-10 09:26:49",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "zopefoundation",
    "github_project": "zope.app.publisher",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "zope.app.publisher"
}
        
Elapsed time: 0.05300s