{ "info": { "author": "Roger Ineichen and the Zope Community", "author_email": "zope3-dev@zope.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Framework :: Zope3", "Intended Audience :: Developers", "License :: OSI Approved :: Zope Public License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP" ], "description": "This package contains a collection of JQuery-based widgets.\n\n* Rest Editor Widget\n\nDetailed Documentation\n**********************\n\n==================\nRest Editor Widget\n==================\n\nThe jquery.resteditorre package provides a javascript which can render a\ntoolbar above a testarea widget. This toolbar offers buttons which can be used\nfor apply reStructuredText formatters to the text in the textarea.\n\nWe can't demonstrate this here because it's all done in javascript. The\nreStructuredText editor textarea looks exactly how a normal z3c.form textarea\nlooks. Btw. any textarea can use this package, there is no need for using the\nimplemented RESTEditorWidget. But anyway such a textarea widget looks like:\n\n >>> import zope.schema\n >>> from z3c.form import widget\n >>> from z3c.form import testing\n >>> from jquery.widget.resteditor.browser import RESTEditorFieldWidget\n\nWe have to define a text field and a test request for instantiate the widget:\n\n >>> text = zope.schema.Text(\n ... title=u'Text',\n ... description=u'Text field'\n ... )\n >>> widget = RESTEditorFieldWidget(text, testing.TestRequest())\n >>> widget\n \n\nBefore we can render the widget, we need to register a template This template\nis normaly registered by the z3c.form framework. Let's do it here since we not\nuse a real site setup.\n\n >>> from zope.configuration import xmlconfig\n >>> import zope.component\n >>> import z3c.form\n >>> xmlconfig.XMLConfig('meta.zcml', zope.component)()\n >>> xmlconfig.XMLConfig('meta.zcml', z3c.form)()\n >>> xmlconfig.XMLConfig('configure.zcml', z3c.form)()\n\nNow we can render the widget:\n\n >>> widget.update()\n >>> print widget.render()\n \n\nAs you can see the reStructuredText editor widget uses a css class called\n``restEditorWidget``. this class can be used for apply a JQuery xpath rule\nand load the JQuery method restEditor.\n\nThis can be done like:\n\n $('.restEditorWidget').restEditor();\n\nOf corse you can do this inside a global JQuery dom onload event handler call.\nIf so, you can use something like this:\n\n $(document).ready(function() {\n $('.restEditorWidget').restEditor();\n });\n\nNote, there is also a sample located at http://www.z3c.org/samples", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://svn.zope.org/jquery.widget", "keywords": "zope3 widget jquery viewlet", "license": "ZPL 2.1", "maintainer": null, "maintainer_email": null, "name": "jquery.widget", "package_url": "https://pypi.org/project/jquery.widget/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/jquery.widget/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://svn.zope.org/jquery.widget" }, "release_url": "https://pypi.org/project/jquery.widget/0.1.0c1/", "requires_dist": null, "requires_python": null, "summary": "A collection of JQuery-based widgets.", "version": "0.1.0c1" }, "last_serial": 683090, "releases": { "0.1.0c1": [ { "comment_text": "", "digests": { "md5": "9489af1cea6420b30e604d848d267db9", "sha256": "ae58353f6212ad8271208c35441d72f0b52fc79fb064a617f13cd3d33e131d8c" }, "downloads": -1, "filename": "jquery.widget-0.1.0c1-py2.4.egg", "has_sig": false, "md5_digest": "9489af1cea6420b30e604d848d267db9", "packagetype": "bdist_egg", "python_version": "2.4", "requires_python": null, "size": 265042, "upload_time": "2007-05-24T13:17:36", "url": "https://files.pythonhosted.org/packages/31/d0/19eb5558ea3ffb01c7287b36719b59e4da48ec2336fcea568082f4f93b12/jquery.widget-0.1.0c1-py2.4.egg" }, { "comment_text": "", "digests": { "md5": "6ec25debea8454720ccb4663c03b09fa", "sha256": "b95f80eec0bebfaa2b3d614289d1c973efd8ddd0dbe3b38153490a79049a7baa" }, "downloads": -1, "filename": "jquery.widget-0.1.0c1.tar.gz", "has_sig": false, "md5_digest": "6ec25debea8454720ccb4663c03b09fa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 141669, "upload_time": "2007-05-24T13:17:19", "url": "https://files.pythonhosted.org/packages/2d/af/6cd4bf94854ad8cc5c87eaaa9d6bb99c385e8f817b81f0238d75ab663976/jquery.widget-0.1.0c1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9489af1cea6420b30e604d848d267db9", "sha256": "ae58353f6212ad8271208c35441d72f0b52fc79fb064a617f13cd3d33e131d8c" }, "downloads": -1, "filename": "jquery.widget-0.1.0c1-py2.4.egg", "has_sig": false, "md5_digest": "9489af1cea6420b30e604d848d267db9", "packagetype": "bdist_egg", "python_version": "2.4", "requires_python": null, "size": 265042, "upload_time": "2007-05-24T13:17:36", "url": "https://files.pythonhosted.org/packages/31/d0/19eb5558ea3ffb01c7287b36719b59e4da48ec2336fcea568082f4f93b12/jquery.widget-0.1.0c1-py2.4.egg" }, { "comment_text": "", "digests": { "md5": "6ec25debea8454720ccb4663c03b09fa", "sha256": "b95f80eec0bebfaa2b3d614289d1c973efd8ddd0dbe3b38153490a79049a7baa" }, "downloads": -1, "filename": "jquery.widget-0.1.0c1.tar.gz", "has_sig": false, "md5_digest": "6ec25debea8454720ccb4663c03b09fa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 141669, "upload_time": "2007-05-24T13:17:19", "url": "https://files.pythonhosted.org/packages/2d/af/6cd4bf94854ad8cc5c87eaaa9d6bb99c385e8f817b81f0238d75ab663976/jquery.widget-0.1.0c1.tar.gz" } ] }