{ "info": { "author": "Grupo ESOC Ingenier\u00eda de Servicios, Tecnativa, Odoo Community Association (OCA)", "author_email": "support@odoo-community.org", "bugtrack_url": null, "classifiers": [ "Framework :: Odoo", "License :: OSI Approved :: GNU Affero General Public License v3", "Programming Language :: Python :: 2.7" ], "description": ".. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg\n :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html\n :alt: License: AGPL-3\n\n====================\nText from HTML field\n====================\n\nThis module provides some technical features that allow to extract text from\nany chunk of HTML, without HTML tags or attributes. You can chose either:\n\n* To truncate the result by amount of words or characters.\n* To append an ellipsis (or any character(s)) at the end of the result.\n\nIt can be used to easily generate excerpts.\n\nUsage\n=====\n\nThis module just adds a technical utility, but nothing for the end user.\n\nIf you are a developer and need this utility for your module, see these\nexamples and read the docs inside the code.\n\nPython example::\n\n @api.multi\n def some_method(self):\n # Get truncated text from an HTML field. It will 40 words and 100\n # characters at most, and will have \"...\" appended at the end if it\n # gets truncated.\n truncated_text = self.env[\"ir.fields.converter\"].text_from_html(\n self.html_field, 40, 100, \"...\")\n\nQWeb example::\n\n \n\n.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas\n :alt: Try me on Runbot\n :target: https://runbot.odoo-community.org/runbot/149/9.0\n\nKnown issues / Roadmap\n======================\n\n* An option could be added to try to respect the basic HTML tags inside the\n excerpt (````, ````, ``

``, etc.).\n\nBug Tracker\n===========\n\nBugs are tracked on `GitHub Issues\n`_. In case of trouble, please\ncheck there if your issue has already been reported. If you spotted it first,\nhelp us smashing it by providing a detailed and welcomed feedback.\n\nCredits\n=======\n\nContributors\n------------\n\n* Jairo Llopis \n* Vicent Cubells \n\nMaintainer\n----------\n\n.. image:: https://odoo-community.org/logo.png\n :alt: Odoo Community Association\n :target: https://odoo-community.org\n\nThis module is maintained by the OCA.\n\nOCA, or the Odoo Community Association, is a nonprofit organization whose\nmission is to support the collaborative development of Odoo features and\npromote its widespread use.\n\nTo contribute to this module, please visit https://odoo-community.org.", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://tecnativa.com", "keywords": "", "license": "AGPL-3", "maintainer": "", "maintainer_email": "", "name": "odoo9-addon-html-text", "package_url": "https://pypi.org/project/odoo9-addon-html-text/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/odoo9-addon-html-text/", "project_urls": { "Homepage": "https://tecnativa.com" }, "release_url": "https://pypi.org/project/odoo9-addon-html-text/9.0.1.0.0/", "requires_dist": [ "lxml.html", "odoo (<9.1a,>=9.0a)" ], "requires_python": "", "summary": "Generate excerpts from any HTML field", "version": "9.0.1.0.0" }, "last_serial": 3998611, "releases": { "9.0.1.0.0": [ { "comment_text": "", "digests": { "md5": "9c6abca9eae3e62ed209d3216f9b02c5", "sha256": "fc411b1dd2d65d6ee71c7c6dcfd7a158af4b3d540c111e1a5745db3383980898" }, "downloads": -1, "filename": "odoo9_addon_html_text-9.0.1.0.0-py2-none-any.whl", "has_sig": false, "md5_digest": "9c6abca9eae3e62ed209d3216f9b02c5", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 20156, "upload_time": "2017-04-11T18:50:39", "url": "https://files.pythonhosted.org/packages/41/e3/972bf019183e1c80caf42410929580887536b5c03247adcd5833923f7bd4/odoo9_addon_html_text-9.0.1.0.0-py2-none-any.whl" } ], "9.0.1.0.0.99.dev1": [ { "comment_text": "", "digests": { "md5": "e179398295a1c1eabaea41eab4dbcbc2", "sha256": "4d812336c659451a4114b2361325f38574664a2e68590b5db75e7e61a6d85293" }, "downloads": -1, "filename": "odoo9_addon_html_text-9.0.1.0.0.99.dev1-py2-none-any.whl", "has_sig": false, "md5_digest": "e179398295a1c1eabaea41eab4dbcbc2", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 20924, "upload_time": "2017-04-11T18:50:43", "url": "https://files.pythonhosted.org/packages/db/8c/836873ddee1688f7aa1873e81d4232b4bdd718a6d865ae01f46de132719a/odoo9_addon_html_text-9.0.1.0.0.99.dev1-py2-none-any.whl" } ], "9.0.1.0.0.99.dev2": [ { "comment_text": "", "digests": { "md5": "fdd6f10cd5b2d4944bc9214d93a8ac41", "sha256": "2ee5d8394dd4687336af8c2f053487b72d6887d75d13b5c3fc6be9b21d7a1708" }, "downloads": -1, "filename": "odoo9_addon_html_text-9.0.1.0.0.99.dev2-py2-none-any.whl", "has_sig": false, "md5_digest": "fdd6f10cd5b2d4944bc9214d93a8ac41", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 21531, "upload_time": "2017-04-11T18:50:46", "url": "https://files.pythonhosted.org/packages/5e/65/55c83f65bf9c413722a2d78c536e31ae97ae1fed7e5f6be0520954bfb990/odoo9_addon_html_text-9.0.1.0.0.99.dev2-py2-none-any.whl" } ], "9.0.1.0.0.99.dev3": [ { "comment_text": "", "digests": { "md5": "a0fa4ece0ce7598fb2936206244620a7", "sha256": "33b1e137801a368c4336ed29e107e25e5c4bec1c1828c83ba1989027ac680882" }, "downloads": -1, "filename": "odoo9_addon_html_text-9.0.1.0.0.99.dev3-py2-none-any.whl", "has_sig": false, "md5_digest": "a0fa4ece0ce7598fb2936206244620a7", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 22176, "upload_time": "2017-04-11T18:50:50", "url": "https://files.pythonhosted.org/packages/b3/bf/040d58738edd7ecc479113106d7b94a4176f4b0a6699d396398b35d0df49/odoo9_addon_html_text-9.0.1.0.0.99.dev3-py2-none-any.whl" } ], "9.0.1.0.0.99.dev4": [ { "comment_text": "", "digests": { "md5": "a1989484e329d8b28d71c2e41b47c415", "sha256": "1a4799d2e3653235c51427602b986fab433af721b24da819796d050b0bdc1323" }, "downloads": -1, "filename": "odoo9_addon_html_text-9.0.1.0.0.99.dev4-py2-none-any.whl", "has_sig": false, "md5_digest": "a1989484e329d8b28d71c2e41b47c415", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 23393, "upload_time": "2017-05-02T05:19:26", "url": "https://files.pythonhosted.org/packages/69/46/27f594f41bf285bc7b25f33e2e5613f2c5388245e515644923fe4a82e9f4/odoo9_addon_html_text-9.0.1.0.0.99.dev4-py2-none-any.whl" } ], "9.0.1.0.0.99.dev5": [ { "comment_text": "", "digests": { "md5": "74fedc04b3d618cb04437eade835ec9f", "sha256": "9fd8ed0768c816846f1ac89d99398a7a0ac9b3a3bc74485466d20ce21b712430" }, "downloads": -1, "filename": "odoo9_addon_html_text-9.0.1.0.0.99.dev5-py2-none-any.whl", "has_sig": false, "md5_digest": "74fedc04b3d618cb04437eade835ec9f", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": "~=2.7", "size": 23435, "upload_time": "2018-02-10T05:31:32", "url": "https://files.pythonhosted.org/packages/6a/da/ab4e69a079cbf92bfe1ab9fb7bb34d46bbecbe09d0872874b080f35f2767/odoo9_addon_html_text-9.0.1.0.0.99.dev5-py2-none-any.whl" } ], "9.0.1.0.0.99.dev6": [ { "comment_text": "", "digests": { "md5": "236e3b8617b418bacea63b14a5eaef9e", "sha256": "ac0215a405e65acf5e2e4ba326484353b78a1dec5c9c45e7a1f04e07099ec941" }, "downloads": -1, "filename": "odoo9_addon_html_text-9.0.1.0.0.99.dev6-py2-none-any.whl", "has_sig": false, "md5_digest": "236e3b8617b418bacea63b14a5eaef9e", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": "~=2.7", "size": 23913, "upload_time": "2018-06-25T04:43:27", "url": "https://files.pythonhosted.org/packages/91/cb/0071d656c5ce0601173310da3eeef3d1625e9c1bc31c737363c54da4f304/odoo9_addon_html_text-9.0.1.0.0.99.dev6-py2-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9c6abca9eae3e62ed209d3216f9b02c5", "sha256": "fc411b1dd2d65d6ee71c7c6dcfd7a158af4b3d540c111e1a5745db3383980898" }, "downloads": -1, "filename": "odoo9_addon_html_text-9.0.1.0.0-py2-none-any.whl", "has_sig": false, "md5_digest": "9c6abca9eae3e62ed209d3216f9b02c5", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 20156, "upload_time": "2017-04-11T18:50:39", "url": "https://files.pythonhosted.org/packages/41/e3/972bf019183e1c80caf42410929580887536b5c03247adcd5833923f7bd4/odoo9_addon_html_text-9.0.1.0.0-py2-none-any.whl" } ] }