{ "info": { "author": "Matous Hora", "author_email": "matous.hora@dms4u.cz", "bugtrack_url": null, "classifiers": [ "Framework :: Plone", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Introduction\r\n============\r\nTested with Plone 3.1. \r\nRelease 1.1 works with grok 0.13 but has not been tested properly.\r\n\r\nThis package contains various plugins for kss\r\n\r\n1. Redirect request\r\n2. Calendar\r\n3. Javascript value setter\r\n4. Autocomplete input box\r\n5. Javascript confirmation\r\n6. Alert text\r\n7. Dynamic positioning\r\n8. Open window\r\n9. Refresh page\r\n10. Remove attribute\r\n\r\nUSAGE\r\n-----\r\n\r\n1. Redirect request\r\n*******************\r\n\r\nRedirect request is a simple plugin to redirect to a given url\r\n\r\n2. Calendar\r\n***********\r\n\r\nRender date picker is a global plugin that provides simple calendar\r\n\r\nOne mandatory parameter - id of the input box to fill the selected date\r\nExample usage::\r\n\r\n #created_calendar:click {\r\n evt-click-preventdefault: True;\r\n action-client: renderDatePicker;\r\n renderDatePicker-fieldName: created;\r\n }\r\n\r\n3. Value setter\r\n***************\r\n\r\nValue setter set a value of an input box using javascript ( changes actual\r\ncurrent form values )\r\n\r\ntarget_element is id of an node that can receive the value (i.e. input)\r\nsource_element is id of an node that is the value taken from\r\nvalue is any value that is send to the target_element\r\n\r\nAt least one of the sources has to be provided\r\n \r\nExample usage::\r\n\r\n #kss-attr-activity-field:click {\r\n evt-click-preventdefault: True;\r\n action-client: valueSetter;\r\n valueSetter-target_element: activity_name_field;\r\n valueSetter-source_element: project_name_field;\r\n }\r\n\r\n4. Autocomplete\r\n***************\r\n\r\nAutocomplete plugin displays limited list as you type into inpt box\r\nAn input which is desired to use autocomplete has to have a attribute vocab with\r\na list of possible values\r\n\r\nAutocomplete triggers an event \"selected\" when an item is chosen either using\r\nmouse or a keyboard\r\n\r\nfrom kss.plugin.cns.plugins.autocomplete import autocomplete_escape\r\nvocab = autocomplete_esacae(DisplayList(...))\r\n\r\nExample usage::\r\n\r\n .kss-autocomplete:focus {\r\n evt-focus-preventdefault: False;\r\n action-client: autocomplete;\r\n autocomplete-vocab_list: nodeAttr(vocab);\r\n }\r\n\r\n .kss-autocomplete:selected {\r\n action-client: alert;\r\n alert-message: 'An item was seleted';\r\n }\r\n\r\nNote the usage of a class - the vocab is passed by kss attribute so the same kss\r\ndefinition can be used for more elements.\r\n\r\n5. Javascript confirmation\r\n**************************\r\n\r\nConfirm is a plugin to display a confirmation dialog with given message and on\r\nconfirmation triggers an \"confirmed\" event\r\n\r\nExample usage::\r\n\r\n button.removeItem:click {\r\n evt-click-preventdefault: True;\r\n evt-click-allowbubbling: True;\r\n action-client: confirm;\r\n confirm-text: \"Do you really want to remove this item?\";\r\n }\r\n\r\n button.removeItem:confirmed {\r\n action-client: alert;\r\n alert-message: \"Deleting the item\"\r\n }\r\n\r\n6. Alert text\r\n*************\r\n\r\nAlert text is a simple plugin to display a javascript alert box, in opposite to\r\ncore alert plugin it does not display any debug info\r\n\r\n7. Dynamic positioning\r\n**********************\r\n\r\nDynamcic positioning is a plugin to center selected node to an absolute position\r\nin a window - simple implementation for ie6 problems with fixed position\r\n\r\nParameters: left, top\r\nCan be either position in pixels or \"center\" that finds the center of a window\r\n\r\n8. Open window\r\n**************\r\n\r\nA simple plugin to open a new window with given url.\r\n\r\nParameters: url\r\n\r\nAvailable as a kss command so it can be invoked within kss server action\r\n\r\n\r\n9. Refresh page\r\n***************\r\n\r\nA simple plugin to reload page. Available as a kss command so it can be invoked\r\nwithin kss server action\r\n\r\n10. Remove attribute\r\n********************\r\n\r\nA plugin to remove attributes. Core plugins only support adding attributes and\r\nremoving by setting their values to empty.\r\nFor instance it was not possible to remove attribute \"disabled\".\r\n\r\nParameters: name - a name of the attribute to remove\r\n\r\n\r\nChangelog\r\n=========\r\n\r\n1.0 - Unreleased\r\n----------------\r\n\r\n* Initial release - compatible with Plone 3.0.x. Some plugins does not work \r\n with Plone 3.1 (for example confirm plugin)\r\n\r\n1.1 - Release\r\n-------------\r\n\r\n* Removed strict dependency on Five and GenericSetup so it works with plain Zope 3", "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/kss.plugin.cns", "keywords": "kss", "license": "GPL", "maintainer": "", "maintainer_email": "", "name": "kss.plugin.cns", "package_url": "https://pypi.org/project/kss.plugin.cns/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/kss.plugin.cns/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://svn.plone.org/svn/collective/kss.plugin.cns" }, "release_url": "https://pypi.org/project/kss.plugin.cns/1.1/", "requires_dist": null, "requires_python": null, "summary": "Various KSS plugins", "version": "1.1" }, "last_serial": 794019, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "df8dc832d8b000415e9dae2f2dd5adff", "sha256": "c1cbce60e7be34e3238964a09108cc942434c652a369a8abe9ff1a442f981206" }, "downloads": -1, "filename": "kss.plugin.cns-1.0-py2.4.egg", "has_sig": false, "md5_digest": "df8dc832d8b000415e9dae2f2dd5adff", "packagetype": "bdist_egg", "python_version": "2.4", "requires_python": null, "size": 29998, "upload_time": "2008-06-06T11:25:01", "url": "https://files.pythonhosted.org/packages/aa/2c/1c99bf28f5819a9ab3ceb1dabf72ef6c4a4bd1a5852eb667d2e4f7779232/kss.plugin.cns-1.0-py2.4.egg" }, { "comment_text": "", "digests": { "md5": "33e0e2ddf43f76fdf1464fc7ec19585c", "sha256": "557757f9fa82869350a29738689e6793e97ecae7ddb6b71f06d3254a487594d7" }, "downloads": -1, "filename": "kss.plugin.cns-1.0.tar.gz", "has_sig": false, "md5_digest": "33e0e2ddf43f76fdf1464fc7ec19585c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25196, "upload_time": "2008-06-06T11:25:00", "url": "https://files.pythonhosted.org/packages/93/49/937cd3101d46bfb4cd40c425be37df4d26c46cb6f2ab55fa6413e7401c1e/kss.plugin.cns-1.0.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "5644671ace037a5d8de05f44c3bb5560", "sha256": "188ca01dc027735fb211b7df985103db17454a10e7974fc631f7626851e76a1b" }, "downloads": -1, "filename": "kss.plugin.cns-1.1-py2.5.egg", "has_sig": false, "md5_digest": "5644671ace037a5d8de05f44c3bb5560", "packagetype": "bdist_egg", "python_version": "2.5", "requires_python": null, "size": 30764, "upload_time": "2008-12-18T14:32:52", "url": "https://files.pythonhosted.org/packages/c8/2d/6eaad13a37e51cb70f7bbdff31d0ecd1d8e556152652f22ec469e9a9322a/kss.plugin.cns-1.1-py2.5.egg" }, { "comment_text": "", "digests": { "md5": "3a59a40784177517872e13330130ed23", "sha256": "9a9808193da9e711b90962d3aeac89c1075ee5e8675848c4a17a524c796d9461" }, "downloads": -1, "filename": "kss.plugin.cns-1.1.tar.gz", "has_sig": false, "md5_digest": "3a59a40784177517872e13330130ed23", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25810, "upload_time": "2008-12-18T14:32:51", "url": "https://files.pythonhosted.org/packages/d3/3a/b5615af337580575ed4987cee7848c300d36100b0b201dc96b977442dd4b/kss.plugin.cns-1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5644671ace037a5d8de05f44c3bb5560", "sha256": "188ca01dc027735fb211b7df985103db17454a10e7974fc631f7626851e76a1b" }, "downloads": -1, "filename": "kss.plugin.cns-1.1-py2.5.egg", "has_sig": false, "md5_digest": "5644671ace037a5d8de05f44c3bb5560", "packagetype": "bdist_egg", "python_version": "2.5", "requires_python": null, "size": 30764, "upload_time": "2008-12-18T14:32:52", "url": "https://files.pythonhosted.org/packages/c8/2d/6eaad13a37e51cb70f7bbdff31d0ecd1d8e556152652f22ec469e9a9322a/kss.plugin.cns-1.1-py2.5.egg" }, { "comment_text": "", "digests": { "md5": "3a59a40784177517872e13330130ed23", "sha256": "9a9808193da9e711b90962d3aeac89c1075ee5e8675848c4a17a524c796d9461" }, "downloads": -1, "filename": "kss.plugin.cns-1.1.tar.gz", "has_sig": false, "md5_digest": "3a59a40784177517872e13330130ed23", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25810, "upload_time": "2008-12-18T14:32:51", "url": "https://files.pythonhosted.org/packages/d3/3a/b5615af337580575ed4987cee7848c300d36100b0b201dc96b977442dd4b/kss.plugin.cns-1.1.tar.gz" } ] }