zope.formlib


Namezope.formlib JSON
Version 6.0 PyPI version JSON
download
home_pagehttps://github.com/zopefoundation/zope.formlib
SummaryForm generation and validation library for Zope
upload_time2023-03-27 09:39:50
maintainer
docs_urlNone
authorZope Foundation and Contributors
requires_python>=3.7
licenseZPL 2.1
keywords zope3 form widget
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ==============
 zope.formlib
==============

.. image:: https://github.com/zopefoundation/zope.formlib/actions/workflows/tests.yml/badge.svg
        :target: https://github.com/zopefoundation/zope.formlib/actions/workflows/tests.yml

.. image:: https://readthedocs.org/projects/zopeformlib/badge/?version=latest
        :target: https://zopeformlib.readthedocs.io/en/latest/
        :alt: Documentation Status


Forms are web components that use widgets to display and input data.
Typically a template displays the widgets by accessing an attribute or
method on an underlying class.

Documentation is hosted at https://zopeformlib.readthedocs.io/en/latest/


=========
 Changes
=========

6.0 (2023-03-27)
================

- Add support for Python 3.11.

- Drop support for Python 2.7, 3.5, 3.6.


5.0.1 (2021-10-25)
==================

- Add support for Python 3.10.


5.0.0 (2021-10-25)
==================

Possibly breaking changes
-------------------------

- Fix checking of constraints on field contents. The ``prefix`` of an
  ``IFormField`` can still be empty and now officially allows dots.
  See `pull request 35
  <https://github.com/zopefoundation/zope.formlib/pull/35>`_.

Features
--------

- Add support for Python 3.9.

Other changes
-------------

- Remove unused non-BBB imports.

- Adjust checkbox widget test to new default for ``required`` on boolean
  fields.


4.7.1 (2020-03-31)
==================

- Ensure all objects have consistent interface resolution orders.
  See `issue 30
  <https://github.com/zopefoundation/zope.formlib/issues/30>`_.

- Remove support for deprecated ``python setup.py test`` command.

4.7.0 (2020-02-27)
==================

- Move inline javascript function definitions containing "<", ">" or "&"
  into external files to follow the XHTML recommendation concerning
  XML/HTML compatibility
  (`#25 <https://github.com/zopefoundation/zope.formlib/issues/25>`_)

- Add support for Python 3.8.

- Drop support for Python 3.4.


4.6.0 (2019-02-12)
==================

- Add support for Python 3.7.

- Make the tests compatible with ``zope.i18n >= 4.5``.


4.5.0 (2018-09-27)
==================

- Fix IE issue in /@@user-information?user_id=TestUser for
  orderedSelectionList (GH#17)

- Move documentation to https://zopeformlib.readthedocs.io


4.4.0 (2017-08-15)
==================

- Add support for Python 3.5, and 3.6.

- Drop support for Python 2.6 and 3.3.

- Use ``UTF-8`` as default encoding when casting bytes to unicode for Python 2
  *and* 3.


4.3.0 (2014-12-24)
==================

- Add support for PyPy.  (PyPy3 is pending release of a fix for:
  https://bitbucket.org/pypy/pypy/issue/1946)

- Add support for Python 3.4.

- Add support for testing on Travis.

- Explicitly hide span in ``orderedSelectionList.pt``.  This only
  contains hidden inputs, but Internet Explorer 10 was showing them
  anyway.

- Support for CSRF protection.

- Added support for restricting the acceptable request method for the
  form submit.


4.3.0a1 (2013-02-27)
====================

- Added support for Python 3.3.


4.2.1 (2013-02-22)
==================

- Moved default values for the ``BooleanDisplayWidget`` from module to class
  definition to make them changeable in instance.


4.2.0 (2012-11-27)
==================

- LP #1017884:  Add redirect status codes (303, 307) to the set which prevent
  form rendering.

- Replaced deprecated ``zope.component.adapts`` usage with equivalent
  ``zope.component.adapter`` decorator.

- Replaced deprecated ``zope.interface.implements`` usage with equivalent
  ``zope.interface.implementer`` decorator.

- Dropped support for Python 2.5.

- Make separator of ``SourceSequenceDisplayWidget`` configurable.


4.1.1 (2012-03-16)
==================

- Added `ignoreContext` attribute to form classes to control whether
  `checkInvariants` takes the context of the form into account when
  checking interface invariants.

  By default `ignoreContext` is set to ``False``.  On the `AddForm` it is
  ``True`` by default because the context of this form is naturally not
  suitable as context for the interface invariant.


4.1.0 (2012-03-15)
==================

- `checkInvariants` now takes the context of the form into account when
  checking interface invariants.

- Tests are no longer compatible with Python 2.4.


4.0.6 (2011-08-20)
==================

- Fixed bug in ``orderedSelectionList.pt`` template.

4.0.5 (2010-09-16)
==================

- Fixed Action name parameter handling, since 4.0.3 all passed names were
  lowercased.

4.0.4 (2010-07-06)
==================

- Fixed tests to pass under Python 2.7.

- Fix validation of "multiple" attributes in orderedSelectionList.pt.

4.0.3 (2010-05-06)
==================

- Keep Actions from raising exceptions when passed Unicode lables [LP:528468].

- Improve display of the "nothing selected" case for optional Choice fields
  [LP:269782].

- Improve truth testing for ItemDisplayWidget [LP:159232].

- Don't blow up if TypeError raised during token conversion [LP:98491].

4.0.2 (2010-03-07)
==================

- Adapted tests for Python 2.4 (enforce sorting for short pprint output)

4.0.1 (2010-02-21)
==================

- Documentation uploaded to PyPI now contains widget documentation.
- Escape MultiCheckBoxWidget content [LP:302427].

4.0 (2010-01-08)
================

- Widget implementation and all widgets from zope.app.form have been
  moved into zope.formlib, breaking zope.formlib's dependency on
  zope.app.form (instead zope.app.form now depends on zope.formlib).

  Widgets can all be imported from ``zope.formlib.widgets``.

  Widget base classes and render functionality is in
  ``zope.formlib.widget``.

  All relevant widget interfaces are now in ``zope.formlib.interfaces``.

3.10.0 (2009-12-22)
===================

- Use named template from zope.browserpage in favor of zope.app.pagetemplate.

3.9.0 (2009-12-22)
==================

- Use ViewPageTemplateFile from zope.browserpage.

3.8.0 (2009-12-22)
==================

- Adjusted test output to new zope.schema release.

3.7.0 (2009-12-18)
==================

- Rid ourselves from zope.app test dependencies.

- Fix: Button label needs escaping

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

- Remove deprecated imports.

- Remove dependency on zope.app.container (use ``IAdding`` from
  ``zope.browser.interfaces``) instead.  Depend on
  ``zope.browser>=1.1`` (the version with ``IAdding``).

- Moved ``namedtemplate`` to ``zope.app.pagetemplate``, to cut some
  dependencies on ``zope.formlib`` when using this feature. Left BBB
  imports here.

3.5.2 (2009-02-21)
==================

- Adapt tests for Python 2.5 output.

3.5.1 (2009-01-31)
==================

- Adapt tests to upcoming zope.schema release 3.5.1.

3.5.0 (2009-01-26)
==================

New Features
------------

- Test dependencies are declared in a `test` extra now.

- Introduced ``zope.formlib.form.applyData`` which works like
  ``applyChanges`` but returns a dictionary with information about
  which attribute of which schema changed.  This information is then
  sent along with the ``IObjectModifiedEvent``.

  This fixes https://bugs.launchpad.net/zope3/+bug/98483.

Bugs Fixed
----------

- Actions that cause a redirect (301, 302) do not cause the `render` method to
  be called anymore.

- The zope.formlib.form.Action class didn't fully implement
  zope.formlib.interfaces.IAction.

- zope.formlib.form.setupWidgets and zope.formlib.form.setupEditWidgets did
  not check for write access on the adapter but on context. This fixes
  https://bugs.launchpad.net/zope3/+bug/219948


3.4.0 (2007-09-28)
==================

No further changes since 3.4.0a1.

3.4.0a1 (2007-04-22)
====================

Initial release as a separate project, corresponds to zope.formlib
from Zope 3.4.0a1

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/zopefoundation/zope.formlib",
    "name": "zope.formlib",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "zope3 form widget",
    "author": "Zope Foundation and Contributors",
    "author_email": "zope-dev@zope.dev",
    "download_url": "https://files.pythonhosted.org/packages/70/4c/012edb956e3714a7a8fcb8c6f746ea838cef94d5d5008c1ab39f45ca449a/zope.formlib-6.0.tar.gz",
    "platform": null,
    "description": "==============\n zope.formlib\n==============\n\n.. image:: https://github.com/zopefoundation/zope.formlib/actions/workflows/tests.yml/badge.svg\n        :target: https://github.com/zopefoundation/zope.formlib/actions/workflows/tests.yml\n\n.. image:: https://readthedocs.org/projects/zopeformlib/badge/?version=latest\n        :target: https://zopeformlib.readthedocs.io/en/latest/\n        :alt: Documentation Status\n\n\nForms are web components that use widgets to display and input data.\nTypically a template displays the widgets by accessing an attribute or\nmethod on an underlying class.\n\nDocumentation is hosted at https://zopeformlib.readthedocs.io/en/latest/\n\n\n=========\n Changes\n=========\n\n6.0 (2023-03-27)\n================\n\n- Add support for Python 3.11.\n\n- Drop support for Python 2.7, 3.5, 3.6.\n\n\n5.0.1 (2021-10-25)\n==================\n\n- Add support for Python 3.10.\n\n\n5.0.0 (2021-10-25)\n==================\n\nPossibly breaking changes\n-------------------------\n\n- Fix checking of constraints on field contents. The ``prefix`` of an\n  ``IFormField`` can still be empty and now officially allows dots.\n  See `pull request 35\n  <https://github.com/zopefoundation/zope.formlib/pull/35>`_.\n\nFeatures\n--------\n\n- Add support for Python 3.9.\n\nOther changes\n-------------\n\n- Remove unused non-BBB imports.\n\n- Adjust checkbox widget test to new default for ``required`` on boolean\n  fields.\n\n\n4.7.1 (2020-03-31)\n==================\n\n- Ensure all objects have consistent interface resolution orders.\n  See `issue 30\n  <https://github.com/zopefoundation/zope.formlib/issues/30>`_.\n\n- Remove support for deprecated ``python setup.py test`` command.\n\n4.7.0 (2020-02-27)\n==================\n\n- Move inline javascript function definitions containing \"<\", \">\" or \"&\"\n  into external files to follow the XHTML recommendation concerning\n  XML/HTML compatibility\n  (`#25 <https://github.com/zopefoundation/zope.formlib/issues/25>`_)\n\n- Add support for Python 3.8.\n\n- Drop support for Python 3.4.\n\n\n4.6.0 (2019-02-12)\n==================\n\n- Add support for Python 3.7.\n\n- Make the tests compatible with ``zope.i18n >= 4.5``.\n\n\n4.5.0 (2018-09-27)\n==================\n\n- Fix IE issue in /@@user-information?user_id=TestUser for\n  orderedSelectionList (GH#17)\n\n- Move documentation to https://zopeformlib.readthedocs.io\n\n\n4.4.0 (2017-08-15)\n==================\n\n- Add support for Python 3.5, and 3.6.\n\n- Drop support for Python 2.6 and 3.3.\n\n- Use ``UTF-8`` as default encoding when casting bytes to unicode for Python 2\n  *and* 3.\n\n\n4.3.0 (2014-12-24)\n==================\n\n- Add support for PyPy.  (PyPy3 is pending release of a fix for:\n  https://bitbucket.org/pypy/pypy/issue/1946)\n\n- Add support for Python 3.4.\n\n- Add support for testing on Travis.\n\n- Explicitly hide span in ``orderedSelectionList.pt``.  This only\n  contains hidden inputs, but Internet Explorer 10 was showing them\n  anyway.\n\n- Support for CSRF protection.\n\n- Added support for restricting the acceptable request method for the\n  form submit.\n\n\n4.3.0a1 (2013-02-27)\n====================\n\n- Added support for Python 3.3.\n\n\n4.2.1 (2013-02-22)\n==================\n\n- Moved default values for the ``BooleanDisplayWidget`` from module to class\n  definition to make them changeable in instance.\n\n\n4.2.0 (2012-11-27)\n==================\n\n- LP #1017884:  Add redirect status codes (303, 307) to the set which prevent\n  form rendering.\n\n- Replaced deprecated ``zope.component.adapts`` usage with equivalent\n  ``zope.component.adapter`` decorator.\n\n- Replaced deprecated ``zope.interface.implements`` usage with equivalent\n  ``zope.interface.implementer`` decorator.\n\n- Dropped support for Python 2.5.\n\n- Make separator of ``SourceSequenceDisplayWidget`` configurable.\n\n\n4.1.1 (2012-03-16)\n==================\n\n- Added `ignoreContext` attribute to form classes to control whether\n  `checkInvariants` takes the context of the form into account when\n  checking interface invariants.\n\n  By default `ignoreContext` is set to ``False``.  On the `AddForm` it is\n  ``True`` by default because the context of this form is naturally not\n  suitable as context for the interface invariant.\n\n\n4.1.0 (2012-03-15)\n==================\n\n- `checkInvariants` now takes the context of the form into account when\n  checking interface invariants.\n\n- Tests are no longer compatible with Python 2.4.\n\n\n4.0.6 (2011-08-20)\n==================\n\n- Fixed bug in ``orderedSelectionList.pt`` template.\n\n4.0.5 (2010-09-16)\n==================\n\n- Fixed Action name parameter handling, since 4.0.3 all passed names were\n  lowercased.\n\n4.0.4 (2010-07-06)\n==================\n\n- Fixed tests to pass under Python 2.7.\n\n- Fix validation of \"multiple\" attributes in orderedSelectionList.pt.\n\n4.0.3 (2010-05-06)\n==================\n\n- Keep Actions from raising exceptions when passed Unicode lables [LP:528468].\n\n- Improve display of the \"nothing selected\" case for optional Choice fields\n  [LP:269782].\n\n- Improve truth testing for ItemDisplayWidget [LP:159232].\n\n- Don't blow up if TypeError raised during token conversion [LP:98491].\n\n4.0.2 (2010-03-07)\n==================\n\n- Adapted tests for Python 2.4 (enforce sorting for short pprint output)\n\n4.0.1 (2010-02-21)\n==================\n\n- Documentation uploaded to PyPI now contains widget documentation.\n- Escape MultiCheckBoxWidget content [LP:302427].\n\n4.0 (2010-01-08)\n================\n\n- Widget implementation and all widgets from zope.app.form have been\n  moved into zope.formlib, breaking zope.formlib's dependency on\n  zope.app.form (instead zope.app.form now depends on zope.formlib).\n\n  Widgets can all be imported from ``zope.formlib.widgets``.\n\n  Widget base classes and render functionality is in\n  ``zope.formlib.widget``.\n\n  All relevant widget interfaces are now in ``zope.formlib.interfaces``.\n\n3.10.0 (2009-12-22)\n===================\n\n- Use named template from zope.browserpage in favor of zope.app.pagetemplate.\n\n3.9.0 (2009-12-22)\n==================\n\n- Use ViewPageTemplateFile from zope.browserpage.\n\n3.8.0 (2009-12-22)\n==================\n\n- Adjusted test output to new zope.schema release.\n\n3.7.0 (2009-12-18)\n==================\n\n- Rid ourselves from zope.app test dependencies.\n\n- Fix: Button label needs escaping\n\n3.6.0 (2009-05-18)\n==================\n\n- Remove deprecated imports.\n\n- Remove dependency on zope.app.container (use ``IAdding`` from\n  ``zope.browser.interfaces``) instead.  Depend on\n  ``zope.browser>=1.1`` (the version with ``IAdding``).\n\n- Moved ``namedtemplate`` to ``zope.app.pagetemplate``, to cut some\n  dependencies on ``zope.formlib`` when using this feature. Left BBB\n  imports here.\n\n3.5.2 (2009-02-21)\n==================\n\n- Adapt tests for Python 2.5 output.\n\n3.5.1 (2009-01-31)\n==================\n\n- Adapt tests to upcoming zope.schema release 3.5.1.\n\n3.5.0 (2009-01-26)\n==================\n\nNew Features\n------------\n\n- Test dependencies are declared in a `test` extra now.\n\n- Introduced ``zope.formlib.form.applyData`` which works like\n  ``applyChanges`` but returns a dictionary with information about\n  which attribute of which schema changed.  This information is then\n  sent along with the ``IObjectModifiedEvent``.\n\n  This fixes https://bugs.launchpad.net/zope3/+bug/98483.\n\nBugs Fixed\n----------\n\n- Actions that cause a redirect (301, 302) do not cause the `render` method to\n  be called anymore.\n\n- The zope.formlib.form.Action class didn't fully implement\n  zope.formlib.interfaces.IAction.\n\n- zope.formlib.form.setupWidgets and zope.formlib.form.setupEditWidgets did\n  not check for write access on the adapter but on context. This fixes\n  https://bugs.launchpad.net/zope3/+bug/219948\n\n\n3.4.0 (2007-09-28)\n==================\n\nNo further changes since 3.4.0a1.\n\n3.4.0a1 (2007-04-22)\n====================\n\nInitial release as a separate project, corresponds to zope.formlib\nfrom Zope 3.4.0a1\n",
    "bugtrack_url": null,
    "license": "ZPL 2.1",
    "summary": "Form generation and validation library for Zope",
    "version": "6.0",
    "split_keywords": [
        "zope3",
        "form",
        "widget"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "05d110259d874f463eb225385ba3213aa8cbf8b420aa841b1e96a0c7e8938a0c",
                "md5": "c91ce4960470dc80e55060ccd9de0209",
                "sha256": "829f656a8bc2fed608042f408424d89b0cb0c8cd3dc1106a9f1974e8cc5b34d6"
            },
            "downloads": -1,
            "filename": "zope.formlib-6.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c91ce4960470dc80e55060ccd9de0209",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 165170,
            "upload_time": "2023-03-27T09:39:47",
            "upload_time_iso_8601": "2023-03-27T09:39:47.758061Z",
            "url": "https://files.pythonhosted.org/packages/05/d1/10259d874f463eb225385ba3213aa8cbf8b420aa841b1e96a0c7e8938a0c/zope.formlib-6.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "704c012edb956e3714a7a8fcb8c6f746ea838cef94d5d5008c1ab39f45ca449a",
                "md5": "e04e7097af2741bf24bf6a7fe7ec49b4",
                "sha256": "b4d5a8fb5fbbaecb5727c5bcfb1593d4e116afc2fecc6b81db1a55eeef9d2228"
            },
            "downloads": -1,
            "filename": "zope.formlib-6.0.tar.gz",
            "has_sig": false,
            "md5_digest": "e04e7097af2741bf24bf6a7fe7ec49b4",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 122103,
            "upload_time": "2023-03-27T09:39:50",
            "upload_time_iso_8601": "2023-03-27T09:39:50.407609Z",
            "url": "https://files.pythonhosted.org/packages/70/4c/012edb956e3714a7a8fcb8c6f746ea838cef94d5d5008c1ab39f45ca449a/zope.formlib-6.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-03-27 09:39:50",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "zopefoundation",
    "github_project": "zope.formlib",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "zope.formlib"
}
        
Elapsed time: 0.12181s