{ "info": { "author": "UNKNOWN", "author_email": "UNKNOWN", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python" ], "description": ".. contents::\n\nIntroduction\n============\n\n`Select2`_ integration for `Plone`_ and `z3c.form`_\n\n\nExample::\n\n from zope import schema\n from zope.interface import Interface\n from .field import Select2MultiField\n from .field import Select2Field\n\n class ISchema(Interface):\n\n users = Select2MultiField(\n title=u\"Users\",\n value_type=schema.Choice(\n title=u\"User ID\",\n source=\"plone.app.vocabularies.Users\"\n ),\n search_view=lambda x: '{}/select2-users-search'.format(x),\n required=True\n )\n\n user = Select2Field(\n title=u\"Single User\",\n source=\"plone.app.vocabularies.Users\",\n search_view=lambda x: '{}/select2-users-search'.format(x),\n placeholder=\"Search and select a user\",\n required=True\n )\n\n categories = Select2MultiField(\n title=u\"Categories\",\n value_type=schema.TextLine(\n title=u\"Category\"\n ),\n search_view=lambda x: '{}/select2-subjects-search'.format(x),\n required=False\n )\n\n\n.. _`Select2`: http://ivaynberg.github.io/select2/\n.. _`Plone`: http://plone.org\n.. _`z3c.form`: https://pypi.python.org/pypi/z3c.form\n\nContributors\n============\n\n- Giorgio Borelli [gborelli], Original Author\n\nChangelog\n=========\n\n1.1 (2014-06-04)\n----------------\n\n- Fixed z3c.form meta.zcml include\n [gborelli]\n\n- Restricted demo view to Manager role\n [gborelli]\n\n- Add placeholder attribute on single and multiple selection widgets\n [jslucas]\n\n\n1.0b (2014-05-14)\n-----------------\n\n- Register categories and users search views to INavigationRoot\n [gborelli]\n\n- Add specific fields for single and multiple selection widgets\n [gborelli]\n\n- Improved IUserTokenInputWidget and UserSearch view\n [gborelli]\n\n- Package created using templer\n [gborelli]", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://svn.plone.org/svn/collective/", "keywords": "", "license": "gpl", "maintainer": null, "maintainer_email": null, "name": "collective.select2", "package_url": "https://pypi.org/project/collective.select2/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/collective.select2/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://svn.plone.org/svn/collective/" }, "release_url": "https://pypi.org/project/collective.select2/1.1/", "requires_dist": null, "requires_python": null, "summary": "User token widget", "version": "1.1" }, "last_serial": 3422864, "releases": { "1.0b": [ { "comment_text": "", "digests": { "md5": "0df5d068d0752723a887720f932aee36", "sha256": "924167dfb974cb01e22cfd65c4787d27db04c9aba5402275cd1601194a1953f9" }, "downloads": -1, "filename": "collective.select2-1.0b.zip", "has_sig": false, "md5_digest": "0df5d068d0752723a887720f932aee36", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 52330, "upload_time": "2014-05-14T08:22:53", "url": "https://files.pythonhosted.org/packages/c0/3d/bfd7493f2a274593e0fc36772b75751dc35fc82cd0d8d6c6bac36f83ad58/collective.select2-1.0b.zip" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "aa3c28880118621f095478fa6b102977", "sha256": "dda87f0581a377cdbb256911096e88810ff728bc6aee0e349233b540e0413191" }, "downloads": -1, "filename": "collective.select2-1.1.zip", "has_sig": false, "md5_digest": "aa3c28880118621f095478fa6b102977", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 52699, "upload_time": "2014-06-04T10:09:09", "url": "https://files.pythonhosted.org/packages/69/ef/0e6fb58f27edcfb2b45a87970459ad55bcd8800979e6b0e0520657492504/collective.select2-1.1.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "aa3c28880118621f095478fa6b102977", "sha256": "dda87f0581a377cdbb256911096e88810ff728bc6aee0e349233b540e0413191" }, "downloads": -1, "filename": "collective.select2-1.1.zip", "has_sig": false, "md5_digest": "aa3c28880118621f095478fa6b102977", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 52699, "upload_time": "2014-06-04T10:09:09", "url": "https://files.pythonhosted.org/packages/69/ef/0e6fb58f27edcfb2b45a87970459ad55bcd8800979e6b0e0520657492504/collective.select2-1.1.zip" } ] }