{ "info": { "author": "Plone Collective", "author_email": "plone-developers@lists.sourceforge.net", "bugtrack_url": null, "classifiers": [ "Framework :: Plone", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Overview\n========\n\nThis is an Archetypes widget which controls the vocabulary or display\nof other fields on an edit page. It needs to be given information about\nwhich fields to control and how to control them.\n\nTo install it just extract into your products directory, restart zope,\nand install it with the QuickInstaller.\n\nUsage\n=====\n\nTo use it just create a field like::\n\n StringField(\n name='master_field',\n default='',\n vocabulary=DisplayList(\n (('week', 'Week'),\n ('wedding','Wedding'),\n ('winona','Winona'),\n ('winter', 'Winter'),\n ('weather','Weather'),\n ('cow', 'Cow'),\n ),\n ),\n widget=MasterSelectWidget(\n label='Test Widget',\n description='Test this',\n slave_fields=(\n {'name': 'slave_field_name',\n 'action': 'vocabulary',\n 'vocab_method': 'mySlaveVocabularyMethod',\n 'control_param': 'my_method_parameter',\n },\n ),\n ),\n ),\n\nYou can use any field type compatible with a normal SelectWidget. And\nyou may use any of the normal SelectWidget parameters (except 'format',\nwhich must be set to 'select'). It will appear and behave like a normal\nSelectWidget, but changes in this widget will affect the widgets described\nin the slave_fields parameter.\n\n\nParameters\n==========\n\nAll the magic happens in the slave_fields parameter which should be a\nsequence of mappings. Each mapping is a description of a field controlled\nby this master field:\n\nname\n The name of the field to control on when the selection changes. The\n controlled field/widget may be of any type unless the 'vocabulary' or\n 'value' action is used. When the action is 'vocabulary', the field must\n use either a MultiSelectionWidget, a SelectionWidget, or a\n MasterSelectWidget any of which must have the 'format' parameter set\n to 'select' (this is the default only for MasterSelectWidget). For\n 'value', the widget must be simple enough to change the current value\n using element.value or elem.selectedIndex (StringWidget, SelectionWidget,\n AutoCompleteWidget, maybe others).\n\naction\n The type of action to perform on the slave field. This can be\n 'vocabulary', which alters the vocabulary of the slave field using an\n XMLHttpRequest call; 'hide' or 'show' which sets the slave field's\n visibility style attribute; 'enable' or 'disable' which marks the\n target widget as enabled or disabled; or 'value' which alters the\n value of another simple widget (StringWidget) on selection change\n using an XMLHttpRequest call. To use the 'vocabulary' action, the\n slave field must meet the widget requirements stated above. To use\n the 'enable'/'disable' actions, the field must use a HTML widget\n that can be enabled/disabled.\n\nvocab_method\n The name of a method to call to retrieve the dynamic vocabulary for\n the slave field, or the value for the slave field when 'value' is used.\n For 'vocabulary', this must return a DisplayList. For 'value, it must\n return a string or msg_id. The method must accept a parameter which\n will be used to pass the new value selected in the master widget. The\n name of this parameter defaults to 'master_value', but any name may be\n used as long as it is specified using the control_param element. Used\n only with 'action':'vocabulary' or 'action':'value'.\n When used with archetypes.schemaextender, the vocabulary method can be\n defined on schema extension class.\n\ntoggle_method\n The name of a method to call returning True when the condition to toggle\n activation or visibility of the slave field is met. The method must\n accept a parameter which will be used to pass the new value selected in\n the master widget. The name of this parameter defaults to\n 'master_value', but any name may be used as long as it is specified\n using the control_param element. Used only with 'action':'hide', \n 'action':'show', 'action':'enable', 'action':'disable'.\n When used with archetypes.schemaextender, the toggle method can be\n defined on schema extension class.\n\ncontrol_param\n As described above, this is the name of the parameter used when\n calling the vocab_method. Used only with 'action':'vocabulary'\n or 'action':'value'.\n\nhide_values\n A sequence of values which when selected in the master widget cause\n the slave field/widget to be hidden, shown or disabled. The method\n used is determined by the 'action' element. Used only with\n 'action':'hide', 'action':'enable', 'action':'disable' or\n 'action':'show'.\n\nA single MasterSelectWidget may control any number of slave fields, new\nfields are controlled by adding new mappings to the slave_fields list/tuple.\nA field which is the target of a MasterSelectWidget action may itself use\na MasterSelectWidget to control other fields.\n\nThis package also provides a MasterMultiSelectWidget providing the same\nfeatures for a multiselection widget.\n\nThe MasterSelectDemo type includes a number of master and slave widgets in\ndifferent configurations.\n\nTo enable the demo type go to portal_setup, hit the `Import` tab, select the\n`MasterSelectWidget demo` profile and click the `Import all steps` button at the bottom.\n\nEnjoy!\n\n\nCredits\n=======\n\nAuthor\n Alec Mitchell: apm13@columbia.edu\n\nContributor\n Dorneles Tremea: deo@plonesolutions.com\n\nChangelog\n=========\n\n0.4.9 (2017-02-03)\n------------------\n\n- Fix for @@masterselect-jsonvalue-vocabulary not outputting labels.\n [mitakas]\n\n\n0.4.8 (2015-08-06)\n------------------\n\n* Fix 'hide_values' argument conversion.\n [sdelcourt]\n\n\n0.4.7 (2015-08-06)\n------------------\n\n\n* Add robot tests.\n [sdelcourt] \n\n* Fix enable/disable feature.\n [sdelcourt] \n\n* Add MasterMultiSelectWidget\n [sdelcourt] \n\n\n\n0.4.6 (2014-06-10)\n------------------\n\n* Use a 'fast' jQuery transition to show/hide slave fields.\n\n* Do not check undefined checkboxes at initialisation (jQuery > 1.6 required)\n (fixes https://github.com/plone/Products.MasterSelectWidget/issues/1)\n [fRiSi] \n\n0.4.5 (2011-10-10)\n------------------\n\n* Try to use embedded json (Python 2.6+).\n [thomasdesvenain]\n\n* Avoid warnings at startup.\n [thomasdesvenain]\n\n* Fixed ajax vocabulary values translation.\n [thomasdesvenain]\n\n* Vocabulary ajax methods can be defined on archetypes.schemaextender extension class.\n [thomasdesvenain]\n\n0.4.4 - 2010-04-16\n------------------\n\n* fixed master boolean widget issues in Plone 4.0 due to jQuery changes.\n (fixes http://plone.org/products/masterselectwidget/issues/1)\n [alecm]\n\n* fixed demo content (could not be added since 0.4.3 due to different productnames\n in registerType and the FTI)\n [fRiSi]\n\n\n0.4.3 - 2010-03-15\n------------------\n\n* Correct missing return from selected values in the slave field\n [danipessanha]\n\n* compatibility with most recent archetypes versions (the `package` parameter of\n `registerType` is no longer optional, see http://dev.plone.org/archetypes/changeset/11184#file4)\n [fRiSi]\n\n0.4.2 - 2009-04-01\n------------------\n\n* Correct missing return value from .browser.MasterSelectJSONValue.getVocabulary\n [alecm]\n\n0.4.1 - 2009-03-24\n------------------\n\n* Re-release, bad egg upload.\n [elro]\n\n0.4 - 2009-03-24\n----------------\n\n* Allow views to be sub-classed more easily.\n [elro]\n\n0.3 - 2009-03-19\n----------------\n\n* Converted to an egg\n [mj]\n\n* Moved configuration (skin, demo type) to GenericSetup profiles.\n [mj]\n\n* Added a MasterBooleanWidget to the demo.\n [mj]\n\n* Refactored javascript to use jQuery and a view for the AJAX results.\n [mj]\n\n* Added simple support for updating kupu slave fields.\n [ender]\n\n* Added MasterBooleanWidget\n [gawel]\n\n* Replace old dtml with browser view\n [gawel]\n\n* Updated docs, did some general small cleanup and added examples\n for the new 'show'/'enable' actions.\n [deo]\n\n* Added new 'enable' action, which only activate the slave field(s)\n when a particular value is selected in the master field.\n [deo]\n\n* Added new 'show' action, which only display the slave field(s)\n when a particular value is selected in the master field.\n [deo]\n\n* Made sure to keep the values initialy selected when using a dynamic\n vocabulary.\n [deo]\n\n\n0.2.2 - 2005-11-09\n------------------\n\n* Fixed some IE bugs and made hiding use display=\"none\" to remove the\n element from the page. Thanks to Yuta Kashino for pinting these out.\n [alecm]\n\n* Added new action for changing value in StringFields using simple\n widgets. Thanks to Joachim Koenig-Baltes for the idea and patch.\n [alecm]\n\n\n0.2.1 - 2005-06-17\n------------------\n\n* Fixed bug that caused unnecessary js alert when hiding some widget types.\n [alecm]\n\n\n0.2 - 2005-06-16\n------------------\n\n* Added support for hiding and disabling compound widgets like Boolean\n and InAndOut.\n [alecm]\n\n* Added the ability for a single master to apply multiple actions on a\n single slave. Now a master widget can both hide and change the\n vocabulary of a slave field. Just add an entry to slave_fields for\n each action desired.\n [alecm]\n\n* Made getXMLSelectVocab accept methods that return lists or tuples\n instead of only DisplayLists. DisplayLists are preferred though.\n [alecm]\n\n\n0.1 - 2005-06-15\n------------------\n\n* Initial checkin, ready for testing.\n [alecm]", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://plone.org/products/masterselectwidget/", "keywords": "", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "Products.MasterSelectWidget", "package_url": "https://pypi.org/project/Products.MasterSelectWidget/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/Products.MasterSelectWidget/", "project_urls": { "Homepage": "http://plone.org/products/masterselectwidget/" }, "release_url": "https://pypi.org/project/Products.MasterSelectWidget/0.4.9/", "requires_dist": null, "requires_python": "", "summary": "An Archetypes widget that controls the vocabulary or display of otheer fields on an edit page", "version": "0.4.9" }, "last_serial": 2616812, "releases": { "0.3": [ { "comment_text": "", "digests": { "md5": "152754d076e1021abbf5ddee507cbfc5", "sha256": "304b6ba6d367593c77d9d8f55489476203ea626d87a63b62ef3b7fc6cb5eef6f" }, "downloads": -1, "filename": "Products.MasterSelectWidget-0.3.tar.gz", "has_sig": false, "md5_digest": "152754d076e1021abbf5ddee507cbfc5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14592, "upload_time": "2009-03-19T20:53:10", "url": "https://files.pythonhosted.org/packages/00/7a/b71cf5ab95c72d0c4bbe566be8afa7337f667a7b34bdb2fe9de6114da56c/Products.MasterSelectWidget-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "46a9137729a31731886aba1d9ef6e83b", "sha256": "2d079ecc382a8f2b780c4afd793d259ecc1d5edf7eb0ce114b39b12670143459" }, "downloads": -1, "filename": "Products.MasterSelectWidget-0.4.tar.gz", "has_sig": false, "md5_digest": "46a9137729a31731886aba1d9ef6e83b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15231, "upload_time": "2009-03-24T11:30:10", "url": "https://files.pythonhosted.org/packages/56/0a/c4b3f80d0977ba93b01c514d36f946193dc2e275624fefaf7619443ddcf3/Products.MasterSelectWidget-0.4.tar.gz" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "0ee7c1b4fd9b2d1fbe05eb0cf09e64d2", "sha256": "d4d441d0182aa20c57edfdce982d76310545959515b9d32d20f0731884789304" }, "downloads": -1, "filename": "Products.MasterSelectWidget-0.4.1.tar.gz", "has_sig": false, "md5_digest": "0ee7c1b4fd9b2d1fbe05eb0cf09e64d2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15154, "upload_time": "2009-03-24T13:35:16", "url": "https://files.pythonhosted.org/packages/f6/e0/73e9f7d77049cbfef80cf3ddfa377d895f95760ed9430339286bdfd69c43/Products.MasterSelectWidget-0.4.1.tar.gz" } ], "0.4.2": [ { "comment_text": "", "digests": { "md5": "a24156f5d7de0fe8121ffe49f28a3c5f", "sha256": "8190180d223419c291cdc6e72f8a3735f5f2e0bb1c641020b251653d0d6faf16" }, "downloads": -1, "filename": "Products.MasterSelectWidget-0.4.2.tar.gz", "has_sig": false, "md5_digest": "a24156f5d7de0fe8121ffe49f28a3c5f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14921, "upload_time": "2009-04-23T05:39:48", "url": "https://files.pythonhosted.org/packages/36/e1/8e35c058a5cc03bb1835b9eb2dbe125d21027997707c93744b18a7c5933c/Products.MasterSelectWidget-0.4.2.tar.gz" } ], "0.4.3": [ { "comment_text": "", "digests": { "md5": "e2b8fe341b0ddf73587103e6d2157ef1", "sha256": "401ecc79912c01e59dc4c4235a2c8a802e57d30e23f1f7c68d94a3f77b24ed11" }, "downloads": -1, "filename": "Products.MasterSelectWidget-0.4.3.tar.gz", "has_sig": false, "md5_digest": "e2b8fe341b0ddf73587103e6d2157ef1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15518, "upload_time": "2010-03-15T18:14:29", "url": "https://files.pythonhosted.org/packages/55/4c/ee1f031737379adf35dfe5c15d84a7eff855eb8be23a8f8eae5309fd12e3/Products.MasterSelectWidget-0.4.3.tar.gz" } ], "0.4.4": [ { "comment_text": "", "digests": { "md5": "0f28e0488a0faf8fea951168c292eb1b", "sha256": "15e3656dedf9fca59563ce5bf9a382bee36e3e9312822bc549e181dafe12af2a" }, "downloads": -1, "filename": "Products.MasterSelectWidget-0.4.4.zip", "has_sig": false, "md5_digest": "0f28e0488a0faf8fea951168c292eb1b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 27654, "upload_time": "2010-04-17T01:08:17", "url": "https://files.pythonhosted.org/packages/c8/79/c232fffb997e500fd6c8e248368e2550d14a86a027aba77a4d6bb35afb8f/Products.MasterSelectWidget-0.4.4.zip" } ], "0.4.5": [ { "comment_text": "", "digests": { "md5": "46c037cecc651d124df9f4431340c18b", "sha256": "a03eaaed0a5953cbcf05522cb8c47377a98f4720653efe075d5e80916b492b44" }, "downloads": -1, "filename": "Products.MasterSelectWidget-0.4.5.zip", "has_sig": false, "md5_digest": "46c037cecc651d124df9f4431340c18b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 28060, "upload_time": "2011-10-10T13:04:39", "url": "https://files.pythonhosted.org/packages/53/57/e29b82af44c713255d737ad86ad28eaf3e54d8755b79bad192a0eb36c0b7/Products.MasterSelectWidget-0.4.5.zip" } ], "0.4.6": [ { "comment_text": "", "digests": { "md5": "e0b34091acc949395bc34fd18958b52e", "sha256": "b3f7d61ff96a4505ea25f5d915533ad9b1166b28a1faf6a529cb0981b9781503" }, "downloads": -1, "filename": "Products.MasterSelectWidget-0.4.6.zip", "has_sig": false, "md5_digest": "e0b34091acc949395bc34fd18958b52e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 28368, "upload_time": "2014-06-10T09:29:13", "url": "https://files.pythonhosted.org/packages/fd/e7/d7f68b7d6e4aecb00d1d8000b4da233aa2260752214d13eb4094b527a4b7/Products.MasterSelectWidget-0.4.6.zip" } ], "0.4.7": [ { "comment_text": "", "digests": { "md5": "28e38e178a1ac19eed1a9d29a1d5136b", "sha256": "85513d573bcbe84d4a286fe6fd0afc9eb6eae1092a804ceff72c935e238d8124" }, "downloads": -1, "filename": "Products.MasterSelectWidget-0.4.7.zip", "has_sig": false, "md5_digest": "28e38e178a1ac19eed1a9d29a1d5136b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 49904, "upload_time": "2015-08-06T07:17:44", "url": "https://files.pythonhosted.org/packages/cd/57/38d756cbea023fa128bdcf12a687310e979aa9ef57abae4fd055ee7e27c3/Products.MasterSelectWidget-0.4.7.zip" } ], "0.4.8": [ { "comment_text": "", "digests": { "md5": "cd28c8084950250301ac952e063aa14d", "sha256": "9f275141dd86d5b61f7789bf307fc8b13ddb13d040a808abe9281d41e8a4902d" }, "downloads": -1, "filename": "Products.MasterSelectWidget-0.4.8.zip", "has_sig": false, "md5_digest": "cd28c8084950250301ac952e063aa14d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 50002, "upload_time": "2015-08-06T09:16:38", "url": "https://files.pythonhosted.org/packages/b9/d0/34356b8da7cd482af7b4b3316ec3ec9c230e4d3b3350f9fa953460bfa2c4/Products.MasterSelectWidget-0.4.8.zip" } ], "0.4.9": [ { "comment_text": "", "digests": { "md5": "4289d64435abd4fb50a3542a28415fd1", "sha256": "34ccb459b457ea9827db7f1f3c5424a81b20b0d9a39bed5263ed4cc12dea2358" }, "downloads": -1, "filename": "Products.MasterSelectWidget-0.4.9.tar.gz", "has_sig": false, "md5_digest": "4289d64435abd4fb50a3542a28415fd1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 31720, "upload_time": "2017-02-03T13:36:43", "url": "https://files.pythonhosted.org/packages/e4/4d/2aacb8f5366a427c602833f08f4bdde44ff9a72b6b570ba735dfa7f0f970/Products.MasterSelectWidget-0.4.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4289d64435abd4fb50a3542a28415fd1", "sha256": "34ccb459b457ea9827db7f1f3c5424a81b20b0d9a39bed5263ed4cc12dea2358" }, "downloads": -1, "filename": "Products.MasterSelectWidget-0.4.9.tar.gz", "has_sig": false, "md5_digest": "4289d64435abd4fb50a3542a28415fd1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 31720, "upload_time": "2017-02-03T13:36:43", "url": "https://files.pythonhosted.org/packages/e4/4d/2aacb8f5366a427c602833f08f4bdde44ff9a72b6b570ba735dfa7f0f970/Products.MasterSelectWidget-0.4.9.tar.gz" } ] }