{ "info": { "author": "LOGILAB S.A. (Paris, FRANCE)", "author_email": "contact@logilab.fr", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: CubicWeb", "Programming Language :: JavaScript", "Programming Language :: Python" ], "description": "Summary\n-------\n\nThis cube provides a generic but ergonomic widget to link an edited\nentity to several others for a given relation. It provides:\n\n* a list of checkbox-(de-)selectable related entities\n\n* a mecanism to trigger the display of a pop-up window for each possible\n target entity type of the relation\n\n* in the pop-up window, the end-user can:\n\n - search (using facets) entities to be linked to the edited entity,\n - display (in a paginated table) and select them (using a checkbox on\n each table line)\n - create a new entity to be linked (can be desactivated)\n\n\nUsage\n-----\n\nSelect the relation widget for your relation\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nYou can use the two following mecanisms to configure the user interface:\n\n- either `cubicweb.web.uihelper.FormConfig`::\n\n from cubicweb.web import uihelper\n from cubes.relationwidget.views import RelationFacetWidget\n\n class MyEntityConfig(uihelper.FormConfig):\n etype = 'MyEntity'\n # Move `my_relation` into the attribute section:\n rels_as_attrs = ('my_relation', )\n # Edit `my_relation` using RelationFacetWidget:\n widgets = dict(\n my_relation=RelationFacetWidget,\n )\n\n- or directly via `uicfg.autoform_field_kwarg`::\n\n from cubicweb.web.views import uicfg\n from cubes.relationwidget.views import RelationFacetWidget\n\n # edit the relation as attribute.\n uicfg.autoform_section.tag_subject_of(\n ('MyEntity', 'my_relation', '*'),\n formtype=('main', 'muledit'), section='attributes')\n\n # add the RelationFacetWidget for `my_relation`\n uicfg.autoform_field_kwargs.tag_subject_of(\n ('MyEntity', 'my_relation', '*'), {'widget': RelationFacetWidget})\n\n\nConfigure it (optional)\n~~~~~~~~~~~~~~~~~~~~~~~\n\nIf you want to desactivate the ability to create a new entity to be\nlinked to the edited one, you can do it:\n\n* for a single relation using uicfg again::\n\n uicfg.autoform_field_kwargs.tag_subject_of(\n ('MyEntity', 'my_relation', '*'),\n {'widget': RelationFacetWidget(no_creation_form=True)})\n\n* application-wide by overriding `SearchForRelatedEntitiesView.has_creation_form`\n to always return False::\n\n from cubes.relationwidget.view import SearchForRelatedEntitiesView\n\n class MySearchForRelatedEntitiesView(SearchForRelatedEntitiesView):\n\n @property\n def has_creation_from(self):\n return False\n\n def registration_callback(vreg):\n vreg.register_and_register(MySearchForRelatedEntitiesView,\n SearchForRelatedEntitiesView)\n\nThere is also a `dialog_options` dictionary that can be used to\nconfigure the bootstrap modal window (see\nhttp://getbootstrap.com/javascript/#modals-options)::\n\n uicfg.autoform_field_kwargs.tag_subject_of(\n ('MyEntity', 'my_relation', '*'),\n {'widget': RelationFacetWidget(dialog_options={'keyboard': False})})", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://www.cubicweb.org/project/cubicweb-relationwidget", "keywords": "", "license": "LGPL", "maintainer": "", "maintainer_email": "", "name": "cubicweb-relationwidget", "package_url": "https://pypi.org/project/cubicweb-relationwidget/", "platform": "", "project_url": "https://pypi.org/project/cubicweb-relationwidget/", "project_urls": { "Homepage": "http://www.cubicweb.org/project/cubicweb-relationwidget" }, "release_url": "https://pypi.org/project/cubicweb-relationwidget/0.5.2/", "requires_dist": null, "requires_python": "", "summary": "Provide a generic and ergonomic relation widget", "version": "0.5.2" }, "last_serial": 5880046, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "e42c83ba10180387bca4367e86e58b97", "sha256": "953ba9e632ae5ea5ca71cb8609161f5660cc82ac50d16ed47d695b4c95745fef" }, "downloads": -1, "filename": "cubicweb-relationwidget-0.1.0.tar.gz", "has_sig": false, "md5_digest": "e42c83ba10180387bca4367e86e58b97", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10882, "upload_time": "2014-07-07T21:17:31", "url": "https://files.pythonhosted.org/packages/d2/4c/58522d819f11a5d652b5992a3f48acc17cca00b847c85a03f75442838c86/cubicweb-relationwidget-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "8cdf0f44d1facb61ae593a40af8929bd", "sha256": "af54c0251892a056351cb2ab5498fcfd6ca341abceb3a6e042fe0d0275c55faf" }, "downloads": -1, "filename": "cubicweb-relationwidget-0.2.0.tar.gz", "has_sig": false, "md5_digest": "8cdf0f44d1facb61ae593a40af8929bd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13427, "upload_time": "2014-09-12T13:45:55", "url": "https://files.pythonhosted.org/packages/c2/9d/ad0dfbdd1300b233b701a64edaf5d6b48d8a8832f49010f475f26d673145/cubicweb-relationwidget-0.2.0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "7a47e0a059e02ad27afc9e221c49cb97", "sha256": "67f4347c71a5facecbe552382b6ab84786f2de7490f9b6d62111d42f40edc0e6" }, "downloads": -1, "filename": "cubicweb-relationwidget-0.3.0.tar.gz", "has_sig": false, "md5_digest": "7a47e0a059e02ad27afc9e221c49cb97", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14110, "upload_time": "2015-07-23T10:46:53", "url": "https://files.pythonhosted.org/packages/4c/f9/8f5eb244a868cf9dee99a80ab053b04652f63d8db530fded0a24b88b63c7/cubicweb-relationwidget-0.3.0.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "d471f021d120d0c23b3d995c251ed691", "sha256": "25bf9996509acfdb573291b1a369c5d83c533f14b4518d42f4597b83920dfa42" }, "downloads": -1, "filename": "cubicweb-relationwidget-0.3.1.tar.gz", "has_sig": false, "md5_digest": "d471f021d120d0c23b3d995c251ed691", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14155, "upload_time": "2015-08-26T09:06:26", "url": "https://files.pythonhosted.org/packages/96/c1/a5fa217290186cd32ff1dfebeb8af23c924521d72e624ff2e64e602120d3/cubicweb-relationwidget-0.3.1.tar.gz" } ], "0.3.2": [ { "comment_text": "", "digests": { "md5": "fb5f86f2a3bbca1317b4ab61e3a3159c", "sha256": "7b4a8f7ec26a485875537cce8db7e8654ae9efcd89dd2fd5df643c938d32bf73" }, "downloads": -1, "filename": "cubicweb-relationwidget-0.3.2.tar.gz", "has_sig": false, "md5_digest": "fb5f86f2a3bbca1317b4ab61e3a3159c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14864, "upload_time": "2015-09-29T09:46:51", "url": "https://files.pythonhosted.org/packages/87/26/ed0fe92b9b57372ce76efe32b427613330d4d8bbdf87ae607730314452b2/cubicweb-relationwidget-0.3.2.tar.gz" } ], "0.3.3": [ { "comment_text": "", "digests": { "md5": "c7d2d30a8f1c7a149e5c9f7419f8bc5c", "sha256": "ae6897d6c34138174b4b318a9e940fd68d7859deb6c2bfbbbaeb58d61e90b10c" }, "downloads": -1, "filename": "cubicweb-relationwidget-0.3.3.tar.gz", "has_sig": false, "md5_digest": "c7d2d30a8f1c7a149e5c9f7419f8bc5c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19330, "upload_time": "2016-02-11T15:34:44", "url": "https://files.pythonhosted.org/packages/2d/f7/385a82916a3179eef1570e9c24031410cd088338c740f3d782b6039d228b/cubicweb-relationwidget-0.3.3.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "216954051d6b0e359fc660c7dc375469", "sha256": "1ad654fef07fe9b0a540c382a5cd2358fb91898e17cd60aadc7413998061d1ad" }, "downloads": -1, "filename": "cubicweb-relationwidget-0.4.0.tar.gz", "has_sig": false, "md5_digest": "216954051d6b0e359fc660c7dc375469", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20898, "upload_time": "2016-10-19T08:25:27", "url": "https://files.pythonhosted.org/packages/31/8e/19c0fbeffeb5776517095525ac3d737ec2697f2a3b4c8cab33a236dc6d1c/cubicweb-relationwidget-0.4.0.tar.gz" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "4901e21c93e7f6a4c1057f64c5ab0acb", "sha256": "6aae26810e2d63399f624e314e469dd2279446913fed0fec6babc6ceebc557fb" }, "downloads": -1, "filename": "cubicweb-relationwidget-0.4.1.tar.gz", "has_sig": false, "md5_digest": "4901e21c93e7f6a4c1057f64c5ab0acb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20915, "upload_time": "2017-03-21T10:09:08", "url": "https://files.pythonhosted.org/packages/e9/2d/84e62af1db2b6091d5d412f77ea3975a2ff7984dd7aa181e1b75c4c670f5/cubicweb-relationwidget-0.4.1.tar.gz" } ], "0.5.0": [ { "comment_text": "", "digests": { "md5": "6f07cb10ada8ee7472aaf57c6d73af8d", "sha256": "dc0de043722db9553aa3d63ca3bbdad43c6b0198418701d870fdd35628afac66" }, "downloads": -1, "filename": "cubicweb-relationwidget-0.5.0.tar.gz", "has_sig": false, "md5_digest": "6f07cb10ada8ee7472aaf57c6d73af8d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15126, "upload_time": "2018-06-11T09:39:11", "url": "https://files.pythonhosted.org/packages/c2/68/d9b462d961cfefb41cbbbaa17578a99c344db55fe2c717f386cf5886948a/cubicweb-relationwidget-0.5.0.tar.gz" } ], "0.5.1": [ { "comment_text": "", "digests": { "md5": "479a961ff9efd2f46269623e1d7413fa", "sha256": "aa5c50f636241321804af254c45ce6f38d099ba405cffdb8728eda71cdf89f95" }, "downloads": -1, "filename": "cubicweb-relationwidget-0.5.1.tar.gz", "has_sig": false, "md5_digest": "479a961ff9efd2f46269623e1d7413fa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20205, "upload_time": "2019-04-17T13:25:19", "url": "https://files.pythonhosted.org/packages/dd/2a/e00589d1aa64f5e2368610a5bf80150f6622fc74e868940c568efba798a9/cubicweb-relationwidget-0.5.1.tar.gz" } ], "0.5.2": [ { "comment_text": "", "digests": { "md5": "ebff9a15d35c9aa8e9e630faa0509f7e", "sha256": "2b2f229f8279c3a15f229c33243f2ae5ff1c1c29f8a80fb3668fa2c0bd5c1106" }, "downloads": -1, "filename": "cubicweb-relationwidget-0.5.2.tar.gz", "has_sig": false, "md5_digest": "ebff9a15d35c9aa8e9e630faa0509f7e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20684, "upload_time": "2019-09-24T14:25:36", "url": "https://files.pythonhosted.org/packages/41/2c/fdb204ff1c68162ee5fbc3027db4b2f00f6c754482ecc7aa66214908440d/cubicweb-relationwidget-0.5.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ebff9a15d35c9aa8e9e630faa0509f7e", "sha256": "2b2f229f8279c3a15f229c33243f2ae5ff1c1c29f8a80fb3668fa2c0bd5c1106" }, "downloads": -1, "filename": "cubicweb-relationwidget-0.5.2.tar.gz", "has_sig": false, "md5_digest": "ebff9a15d35c9aa8e9e630faa0509f7e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20684, "upload_time": "2019-09-24T14:25:36", "url": "https://files.pythonhosted.org/packages/41/2c/fdb204ff1c68162ee5fbc3027db4b2f00f6c754482ecc7aa66214908440d/cubicweb-relationwidget-0.5.2.tar.gz" } ] }