{ "info": { "author": "Dieter Maurer", "author_email": "dieter@handshake.de", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Framework :: Zope2", "Intended Audience :: Developers", "License :: OSI Approved :: Zope Public License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Utilities" ], "description": "This package allows to work around\nproblems/weaknesses in ``zope.formlib`` and the associated widgets in \n``zope.app.form.browser``,\ndescribed by \"https://bugs.launchpad.net/zope3/+bug/528920\"\nand \"https://bugs.launchpad.net/zope3/+bug/528912\".\n\nThe package has been developed for Zope 2.10, will probably work for Zope 2.11\nand is unlikely to work for very new Zope versions, because the widget\ncode has been moved from ``zope.app.form`` to ``zope.formlib``.\nI may publish versions of this package for new Zope versions in the future.\n\nThe package consists of various modules described below.\n\nTo use the package in your application, you import some of its\npatch functions (mentioned below) and call them during the startup\nof your application.\n\nI hope that corresponding patches will sooner or later appear in the\nstandard Zope code and make this package obsolete.\n\n\nform\n----\n\nTogether with ``widget``, this module is destined to work\naround http://dev.plone.org/plone/ticket/10264 and https://bugs.launchpad.net/zope3/+bug/528920.\n\n``zope.formlib`` distinguishes between widget related errors\nand other (more global) errors. If a widget itself detects a\nwidget related error (usually because a restriction for the\nassociated field fails), it sets its error condition.\nThis error condition is usually used to highlight the widget containing an\nerror and to provide information about this error.\nHowever, if the widget related error is not detected by the\nwidget itself, the error is not associated with the widget and\nimportant information may be missing.\n\nThe function ``patch_action()`` in module ``form`` enhances\n``zope.formlib.form.Action`` by an additional method\n``associate_errors_with_widgets`` and redefines its\n``failure`` method to call it unless an explicit failure handler is specified.\nThis provides for automatic error association with the widgets\nin the standard case.\n\n``associate_errors_with_widgets`` tries to associate\n``zope.app.form.interfaces.WidgetInputError`` with\nthe corresponding widget. For this purpose, the widget\nmust have a ``setWidgetInputError`` method.\nBy default widgets lack this method. However ``widget.patch_widget()``\ncan be used to define it. Therefore, ``form.patch_action()``\nand ``widget.patch_widget()`` are usually used together.\n\n\nwidget\n------\nTogether with ``form``, this module is destined to work\naround http://dev.plone.org/plone/ticket/10264 and https://bugs.launchpad.net/zope3/+bug/528920.\n\nIts ``patch_widget()`` enhances\n``zope.app.form.browser.widget.BrowserWidget`` (the base class for\n``zope.app.form`` widgets) by defining the method ``setWidgetInputError``.\nThe method allows external code to set an error condition on the widget.\n\n``setWidgetInputError`` is used by the error handling implemented\nby the ``form`` module. Therefore, ``widget.patch_widget()`` is usually\nused together with ``form.patch_action()``.\n\n\nmultiselection\n--------------\n\nThis module is destined to work around\nhttp://dev.plone.org/plone/ticket/10267 and https://bugs.launchpad.net/zope3/+bug/528912.\n\nIts ``patch_OrderedMultiSelectWidget()``\nfixes ``zope.app.form.browser.itemswidgets.OrderedMultiSelectWidget``.", "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/dm.zopepatches.formlib", "keywords": "application development web formlib multiple selection error handling", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "dm.zopepatches.formlib", "package_url": "https://pypi.org/project/dm.zopepatches.formlib/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/dm.zopepatches.formlib/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://pypi.python.org/pypi/dm.zopepatches.formlib" }, "release_url": "https://pypi.org/project/dm.zopepatches.formlib/1.0.1/", "requires_dist": null, "requires_python": null, "summary": "Work around problems/weaknesses in 'zope.formlib' and the widgets in 'zope.app.form'.", "version": "1.0.1" }, "last_serial": 791272, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "e52a5d9615585c8912b91d2ef0792eda", "sha256": "53d84bea17cf35d1d6a4cf6ed6febcfe6687ef6b3de071d96dec0ea4612fb2ab" }, "downloads": -1, "filename": "dm.zopepatches.formlib-1.0.tar.gz", "has_sig": false, "md5_digest": "e52a5d9615585c8912b91d2ef0792eda", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4467, "upload_time": "2010-02-26T16:57:45", "url": "https://files.pythonhosted.org/packages/0f/3d/ee23e76e4aba85b500f79a9ca2f9efc3be210e7a22491d214ce099d09140/dm.zopepatches.formlib-1.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "b9c1cf89d2a97c6d0ec3812662173d91", "sha256": "32be500059b55b62755bc0facc77a30d6f94b3f675ca22c0187318035b2d7e6c" }, "downloads": -1, "filename": "dm.zopepatches.formlib-1.0.1.tar.gz", "has_sig": false, "md5_digest": "b9c1cf89d2a97c6d0ec3812662173d91", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4742, "upload_time": "2010-02-27T11:55:01", "url": "https://files.pythonhosted.org/packages/4e/38/17c4628237df502db99bb8270bbea0d444c8221dd3606b488968a4c3c7a3/dm.zopepatches.formlib-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b9c1cf89d2a97c6d0ec3812662173d91", "sha256": "32be500059b55b62755bc0facc77a30d6f94b3f675ca22c0187318035b2d7e6c" }, "downloads": -1, "filename": "dm.zopepatches.formlib-1.0.1.tar.gz", "has_sig": false, "md5_digest": "b9c1cf89d2a97c6d0ec3812662173d91", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4742, "upload_time": "2010-02-27T11:55:01", "url": "https://files.pythonhosted.org/packages/4e/38/17c4628237df502db99bb8270bbea0d444c8221dd3606b488968a4c3c7a3/dm.zopepatches.formlib-1.0.1.tar.gz" } ] }