{ "info": { "author": "Fanstatic developers", "author_email": "kotti@googlegroups.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 6 - Mature", "Framework :: Pyramid", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: WSGI" ], "description": "js.deform\n=========\n\nIntroduction\n------------\n\nThis library packages `deform`_ for `fanstatic`_.\n\n.. _`fanstatic`: http://fanstatic.org\n.. _`deform`: http://docs.pylonsproject.org/projects/deform/\n\nThis requires integration between your web framework and ``fanstatic``,\nand making sure that the original resources (shipped in the ``resources``\ndirectory in ``js.deform``) are published to some URL.\n\nIncluded resources\n------------------\n\n``js.deform`` is different from most ``js.`` packages in that it doesn't\ninclude any resources itself. It references the resources from ``deform``\ninstead. The only resources that are made available from ``js.deform``\nare ``deform.js``, ``form.css`` and ``beautify.css``. All other resources\nthat are part of the ``deform`` distribution are available separately:\n\n - jQuery (http://pypi.python.org/pypi/js.jquery)\n - jQueryUI (http://pypi.python.org/pypi/js.jqueryui)\n - jQueryUI Timepicker Addon (http://pypi.python.org/pypi/js.jquery_timepicker_addon)\n - jQuery Form (http://pypi.python.org/pypi/js.jquery_form)\n - jquery.maskedinput (http://pypi.python.org/pypi/js.jquery_maskedinput)\n - jquery-maskmoney (http://pypi.python.org/pypi/js.jquery_maskmoney)\n - jQuery Sortable (http://pypi.python.org/pypi/js.jquery-sortable)\n - TinyMCE (http://pypi.python.org/pypi/js.tinymce)\n - Typeahead (http://pypi.python.org/pypi/js.typeahead)\n\nHow to use?\n===========\n\nJS\n--\n\nYou can import ``deform_js`` from ``js.deform`` and ``need``\nit where you want these resources to be included on a page::\n\n >>> from js.deform import deform_js\n >>> deform_js.need()\n\nCSS\n---\n\nYou can import ``deform_css`` from ``js.deform`` and ``need``\nit where you want these resources to be included on a page::\n\n >>> from js.deform import deform_css\n >>> deform_css.need()\n\nThis will include Deform's default ``form.css`` as well as the\n``beautify.css``. If you only want one or the other, you can\n``need`` them like so::\n\n >>> from js.deform import deform_form_css\n >>> deform_form_css.need()\n\n >>> from js.deform import deform_beautify_css\n >>> deform_beautify_css.need()\n\n\nAll\n---\n\nYou can import ``deform`` from ``js.deform`` and ``need``\nit where you want these resources to be included on a page::\n\n >>> from js.deform import deform\n >>> deform.need()\n\nThis automatically includes all of Deform's CSS and JS and is\nthe equivalent to needing both ``deform_js`` and ``deform_css``\nas described above.\n\nAuto-needing Resources\n----------------------\n\nYou can avoid needing to manually import and ``need()`` each\nFanstatic dependency of your ``Deform`` form by use of the ``auto_need``\nfunction provided in this package.\n\n >>> import js.deform\n >>> import colander\n >>> import deform\n\n >>> schema = colander.Schema()\n >>> form = deform.Form(schema)\n >>> js.deform.auto_need(form)\n\nBy doing the above, any widget requirements - including those of `Deform`\nitself - will be included for Fanstatic.\n\nSo, you may have a form that requires a ``deform.widget.RichTextWidget``\nfor one of its fields. This type of widget requires resources relating to\n`TinyMCE`. ``js.deform.auto_need`` will use ``js.tinymce`` for this\nrequirement.\n\nThis is all best illustrated in the following example.\n\nInitialise Fanstatic so we can see resources being included:\n\n >>> import fanstatic\n >>> dummy = fanstatic.init_needed()\n >>> len(fanstatic.get_needed().resources())\n 0\n\nCreate a demonstration schema and form:\n\n >>> schema = colander.Schema()\n >>> node = colander.SchemaNode(colander.String(),\n ... widget=deform.widget.RichTextWidget())\n >>> schema.add(node)\n >>> form = deform.Form(schema)\n\nCheck the form's resource requirements:\n\n >>> form.get_widget_requirements()\n [('deform', None), ('tinymce', None)]\n\nAsk ``auto_need`` to include the resources for us:\n\n >>> js.deform.auto_need(form)\n >>> needed = fanstatic.get_needed()\n\nSo we can now see the resources that have been included:\n\n >>> from js.jquery import jquery\n >>> jquery in needed.resources()\n True\n >>> from js.tinymce import tinymce\n >>> tinymce in needed.resources()\n True\n >>> from js.deform import deform_js\n >>> deform_js in needed.resources()\n True\n\nThe above resources will automatically be included on your page once\nFanstatic is configured accordingly.\n\n\nPatching deform to automatically need the resources for a widget\n----------------------------------------------------------------\n\nIf you don't want to have to call ``auto_need(form)`` for every form\ninstance in your application, you can patch deform (e.g. on application\nstartup) to automagically ``need()`` everything for you where required.\nIf you use Pyramid adding ``js.deform`` to your ``pyramid.includes``\nis enough.\n\nLet's reinit fanstatic...\n\n >>> dummy = fanstatic.init_needed()\n >>> len(fanstatic.get_needed().resources())\n 0\n\n...and patch ``deform`` this time:\n\n >>> from js.deform import includeme\n >>> includeme()\n\nNote that you only have too do this once, e.g on application startup.\n\nNow do the same as above, but without calling auto_need. Note that\nthe ``need()`` calls are not issued before rendering the form.\n\n >>> schema = colander.Schema()\n >>> node = colander.SchemaNode(colander.String(),\n ... widget=deform.widget.RichTextWidget())\n >>> schema.add(node)\n >>> form = deform.Form(schema)\n >>> needed = fanstatic.get_needed()\n >>> len(needed.resources())\n 0\n >>> html = form.render()\n >>> needed = fanstatic.get_needed()\n\nAgain all resources have been included for us:\n\n >>> jquery in needed.resources()\n True\n >>> tinymce in needed.resources()\n True\n >>> deform_js in needed.resources()\n True\n\nCHANGES\n=======\n\n2.0.3 - 2016-11-20\n------------------\n\n- Depend on deform 2.0.3.\n\n2.0a2-3 2015-01-31\n------------------\n\n- Add mapping for ``select2``.\n\n------------------\n2.0a2-1 2014-05-13\n------------------\n\n- Use the typeahead bundled with deform instead of ``js.typeahead`` as the\n latter fails on Python 2.6.\n\n2.0a2 2014-05-13\n----------------\n\n- Depend on deform 2.0a2 (Bootstrap 3).\n THIS IS NOT BACKWARD COMPATIBLE AND WILL BREAK WITH OLDER DEFORMS!\n\n0.9.8 - 2013-11-19\n------------------\n\n- Resolve ``modernizr`` dependency with js.modernizr; this was introduced\n in deform-0.9.6.\n\n0.9.7 - 2013-03-14\n------------------\n\n- Add ``deform_basic`` to the available resource groupings. Using this\n includes just the basic CSS and JavaScript, without the 'beautify' CSS.\n [davidjb]\n\n0.9.6 - 2013-02-23\n------------------\n\n- No changes.\n\n0.9.5-6\n-------\n\n- Fix a bug that caused requirements not to be loaded on ValidationFailure\n (thanks icemac!).\n\n0.9.5-5\n-------\n\n- Include ``js.jquery_form`` dependency in setup.py (thanks icemac!).\n\n0.9.5-4\n-------\n\n- Make all items in resource_mapping a list, so that third party\n packages (e.g. kotti_tinymce) can append resources.\n\n0.9.5-3\n-------\n\n- Add an includme for easy using in Pyramid projects.\n\n- Change patching to only patch deform.form.Form instead of individual\n widgets.\n\n0.9.5-2\n-------\n\n- Add ``auto_need`` method for automatically including Fanstatic resources\n for a given Deform form instance.\n\n- Add ``patch_deform`` function for automagically including Fanstatic\n resources. This feature will vanish when deform gets a FormRender\n event which we can subscribe to.\n\n0.9.5-1\n-------\n\n- Make the CSS resources available separately as well as combined with\n the JS resource.\n\n0.9.5\n-----\n\n- Initial release.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/fanstatic/js.deform", "keywords": "", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "js.deform", "package_url": "https://pypi.org/project/js.deform/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/js.deform/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/fanstatic/js.deform" }, "release_url": "https://pypi.org/project/js.deform/2.0.3/", "requires_dist": null, "requires_python": null, "summary": "Fanstatic packaging of deform", "version": "2.0.3" }, "last_serial": 2471114, "releases": { "0.9.5": [ { "comment_text": "", "digests": { "md5": "701d69ef6b1a5b4384e3882b2f1072dd", "sha256": "daed887bef622bd8351431d319bd13d9297bbc1c4c34df38b4ad959926722644" }, "downloads": -1, "filename": "js.deform-0.9.5.tar.gz", "has_sig": false, "md5_digest": "701d69ef6b1a5b4384e3882b2f1072dd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3161, "upload_time": "2012-10-15T12:46:51", "url": "https://files.pythonhosted.org/packages/df/40/d6fb87f210cb1a447452a4427927ffa01731a104954df2b84e5734f2b432/js.deform-0.9.5.tar.gz" } ], "0.9.5-1": [ { "comment_text": "", "digests": { "md5": "7ec846f6c6b8df4648c8d87a8f422270", "sha256": "0e039c54402ce1e854d99383224017d6fae7ae20b091226a8decc88cab164bc7" }, "downloads": -1, "filename": "js.deform-0.9.5-1.tar.gz", "has_sig": false, "md5_digest": "7ec846f6c6b8df4648c8d87a8f422270", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3381, "upload_time": "2012-10-17T06:56:28", "url": "https://files.pythonhosted.org/packages/e8/ab/48a49c9f25877e3bbe29fa2f12f546c3389a6c9aa5353a323a89b905a197/js.deform-0.9.5-1.tar.gz" } ], "0.9.5-2": [ { "comment_text": "", "digests": { "md5": "79f850dcbb320730a0d2f3356a1d5cdb", "sha256": "bcf9beee3e7cefa1efe74c0d5d6064881b254d508ff1979b3725be2262baf08b" }, "downloads": -1, "filename": "js.deform-0.9.5-2.tar.gz", "has_sig": false, "md5_digest": "79f850dcbb320730a0d2f3356a1d5cdb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6589, "upload_time": "2012-10-24T15:04:43", "url": "https://files.pythonhosted.org/packages/c8/4e/87b40718347ae8e0b0797afcf8170cba518df714038309e5f124bd0902d0/js.deform-0.9.5-2.tar.gz" } ], "0.9.5-3": [ { "comment_text": "", "digests": { "md5": "d7f40042080a9a7cbeca62c39cf79bfd", "sha256": "b1b7e1cbfd05537ae24caf4837a1c616ce967f79944845fee064fb37d90fd504" }, "downloads": -1, "filename": "js.deform-0.9.5-3.tar.gz", "has_sig": false, "md5_digest": "d7f40042080a9a7cbeca62c39cf79bfd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5606, "upload_time": "2012-10-24T17:53:29", "url": "https://files.pythonhosted.org/packages/cd/b3/ecb1969aa6770f9c994328bca6067c2a0af27b8ba269f984f36652cbf4a1/js.deform-0.9.5-3.tar.gz" } ], "0.9.5-4": [ { "comment_text": "", "digests": { "md5": "69574cdc6c17a978f09012c1b2965589", "sha256": "37cb1a33f80f8add7d4b732680323ae3747ffd980bc5903ebd1750384d3917fa" }, "downloads": -1, "filename": "js.deform-0.9.5-4.tar.gz", "has_sig": false, "md5_digest": "69574cdc6c17a978f09012c1b2965589", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5683, "upload_time": "2012-10-29T13:07:34", "url": "https://files.pythonhosted.org/packages/5e/83/33b44e281a3791ad9abcf7bb659e6e9ee21f7af745890d4439bff623845c/js.deform-0.9.5-4.tar.gz" } ], "0.9.5-5": [ { "comment_text": "", "digests": { "md5": "39c4bdc00ba6bbe4ad54ae1f9f2b934c", "sha256": "8d5c7737d96fa2c7865b13aba95b5d99f067b825b647d7463cfae8671067459b" }, "downloads": -1, "filename": "js.deform-0.9.5-5.tar.gz", "has_sig": false, "md5_digest": "39c4bdc00ba6bbe4ad54ae1f9f2b934c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5731, "upload_time": "2012-11-20T15:41:06", "url": "https://files.pythonhosted.org/packages/0f/3a/b9126eb73234bf7725fdb8963ab102aaa3c4c5809ceac129f7bf7de47781/js.deform-0.9.5-5.tar.gz" } ], "0.9.5-6": [ { "comment_text": "", "digests": { "md5": "e4b9dfdc702d53b36ffb578e8e279fe0", "sha256": "1f011272c49b49ca8932b6043ef7c226cd5bacdf86b38bfaa9008e757fba61e7" }, "downloads": -1, "filename": "js.deform-0.9.5-6.tar.gz", "has_sig": false, "md5_digest": "e4b9dfdc702d53b36ffb578e8e279fe0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5845, "upload_time": "2012-11-23T14:30:23", "url": "https://files.pythonhosted.org/packages/d6/ac/8971d3b01bd307e1c04aadee98f848449d51c1ccb9a810eb744d4ee318c0/js.deform-0.9.5-6.tar.gz" } ], "0.9.6": [ { "comment_text": "", "digests": { "md5": "b4d8511af9b473267ad0cd2486864434", "sha256": "894e099a36f22ded2d9e96589474f42c6f4543d86e77b92a08a13d75c7b7bd64" }, "downloads": -1, "filename": "js.deform-0.9.6.tar.gz", "has_sig": false, "md5_digest": "b4d8511af9b473267ad0cd2486864434", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6385, "upload_time": "2013-02-23T09:18:32", "url": "https://files.pythonhosted.org/packages/be/28/84fb58e238635177fbd5a03190b8b06d3e2a583b7b2cb5058ddacc1e0047/js.deform-0.9.6.tar.gz" } ], "0.9.7": [ { "comment_text": "", "digests": { "md5": "2f234dce420ca0c9998a36eee50f0eb9", "sha256": "9ffc5a8870a4ee961d3c5afc09fe4ed6b07a87ae057577d30632d2ac03826f9a" }, "downloads": -1, "filename": "js.deform-0.9.7.tar.gz", "has_sig": false, "md5_digest": "2f234dce420ca0c9998a36eee50f0eb9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6712, "upload_time": "2013-03-14T08:51:23", "url": "https://files.pythonhosted.org/packages/bd/9f/a33462964ae6d18b6d8767a0b9261b0673bb5e0d7b95ae941fd04ec83105/js.deform-0.9.7.tar.gz" } ], "0.9.8": [ { "comment_text": "", "digests": { "md5": "1622b5fa4897c13c277587ad3c33935e", "sha256": "34aa086269245060d656f39be2bce6608bf8861a13bc2dc248da668677681159" }, "downloads": -1, "filename": "js.deform-0.9.8.tar.gz", "has_sig": false, "md5_digest": "1622b5fa4897c13c277587ad3c33935e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6806, "upload_time": "2013-11-19T10:35:26", "url": "https://files.pythonhosted.org/packages/99/fc/45539b44648a535c53116ad9f248f120e4bffcb12f0cf9956edc88213767/js.deform-0.9.8.tar.gz" } ], "2.0.3": [ { "comment_text": "", "digests": { "md5": "dc01f991a1c06404634241c827d5a5c6", "sha256": "ffdb4b4b7aa068fb9f368fdee6ba5ad4b5ad65b803792aea5c81018bd64fe826" }, "downloads": -1, "filename": "js.deform-2.0.3.tar.gz", "has_sig": false, "md5_digest": "dc01f991a1c06404634241c827d5a5c6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8908, "upload_time": "2016-11-19T23:23:15", "url": "https://files.pythonhosted.org/packages/f2/59/7ae285d1af6fd018a88eb80c8161ee0e59e478f857a9bba073a6f9681f67/js.deform-2.0.3.tar.gz" } ], "2.0a2": [ { "comment_text": "", "digests": { "md5": "97f5fd7af66297009976b15ebce059bd", "sha256": "37af779b1aea79723d24f5c8cb8eb1cf13f82cbb63a8079a3e69beac23ce6fa0" }, "downloads": -1, "filename": "js.deform-2.0a2.tar.gz", "has_sig": false, "md5_digest": "97f5fd7af66297009976b15ebce059bd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7011, "upload_time": "2014-05-13T11:45:23", "url": "https://files.pythonhosted.org/packages/5b/c1/2f80afd75ed7fc9c97482ef8c2385008150be22eb00b65b7483f9962167e/js.deform-2.0a2.tar.gz" } ], "2.0a2-1": [ { "comment_text": "", "digests": { "md5": "3bfa8595190347cb03e76d9886007712", "sha256": "888d7aa4220160129d5da0e4ea5c425f837fba966012da41ac3591baa035fffb" }, "downloads": -1, "filename": "js.deform-2.0a2-1.tar.gz", "has_sig": false, "md5_digest": "3bfa8595190347cb03e76d9886007712", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7079, "upload_time": "2014-05-13T12:51:05", "url": "https://files.pythonhosted.org/packages/64/5c/5ec13ec2bd9549d621dd73e7fa4639f50f60ffee4e38c65062b3bca095ce/js.deform-2.0a2-1.tar.gz" } ], "2.0a2-2": [ { "comment_text": "", "digests": { "md5": "0ed83e973226ae403e21a7907a45b7ca", "sha256": "2b7e87b72bd37020966331fe51231b27befb73dcf6d1ce6f772bba1ab4aa7b19" }, "downloads": -1, "filename": "js.deform-2.0a2-2.tar.gz", "has_sig": false, "md5_digest": "0ed83e973226ae403e21a7907a45b7ca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7258, "upload_time": "2014-05-19T08:11:32", "url": "https://files.pythonhosted.org/packages/52/98/d39d01af980d29637cdd26210dd1d8d31d76268728e35c5adc2b5d2e9810/js.deform-2.0a2-2.tar.gz" } ], "2.0a2-3": [ { "comment_text": "", "digests": { "md5": "c2617f295d2fac1c918a66777dab483d", "sha256": "b3c455fbd8270248da7f77c6da73b556d29ca5f3296d438a5489a9c2f19e6024" }, "downloads": -1, "filename": "js.deform-2.0a2-3.tar.gz", "has_sig": false, "md5_digest": "c2617f295d2fac1c918a66777dab483d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7296, "upload_time": "2015-01-31T13:43:44", "url": "https://files.pythonhosted.org/packages/54/57/5c76efb5f911616a201cbf580a6a7e94b369138b2e54800ce16683fcfcf6/js.deform-2.0a2-3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "dc01f991a1c06404634241c827d5a5c6", "sha256": "ffdb4b4b7aa068fb9f368fdee6ba5ad4b5ad65b803792aea5c81018bd64fe826" }, "downloads": -1, "filename": "js.deform-2.0.3.tar.gz", "has_sig": false, "md5_digest": "dc01f991a1c06404634241c827d5a5c6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8908, "upload_time": "2016-11-19T23:23:15", "url": "https://files.pythonhosted.org/packages/f2/59/7ae285d1af6fd018a88eb80c8161ee0e59e478f857a9bba073a6f9681f67/js.deform-2.0.3.tar.gz" } ] }