odoo9-addon-html-image-url-extractor


Nameodoo9-addon-html-image-url-extractor JSON
Version 9.0.1.0.0 PyPI version JSON
download
home_pagehttps://tecnativa.com
SummaryExtract images found in any HTML field
upload_time2017-04-11 18:50:14
maintainer
docs_urlNone
authorTecnativa, Odoo Community Association (OCA)
requires_python
licenseAGPL-3
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            .. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
   :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
   :alt: License: AGPL-3

==========================
Image URLs from HTML field
==========================

This module includes a method that extracts image URLs from any chunk of HTML,
in appearing order.

Usage
=====

This module just adds a technical utility, but nothing for the end user.

If you are a developer and need this utility for your module, see these
examples and read the docs inside the code.

Python example::

    @api.multi
    def some_method(self):
        # Get images from an HTML field
        imgs = self.env["ir.fields.converter"].imgs_from_html(self.html_field)
        for url in imgs:
            # Do stuff with those URLs
            pass

QWeb example::

    <!-- Extract first image from a blog post -->
    <t t-foreach="env['ir.fields.converter']
                  .imgs_from_html(blog_post.content, 1)"
       t-as="url">
        <img t-att-href="url"/>
    </t>

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
   :alt: Try me on Runbot
   :target: https://runbot.odoo-community.org/runbot/149/9.0

Known issues / Roadmap
======================

* The regexp to find the URL could be better.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues
<https://github.com/OCA/server-tools/issues>`_. In case of trouble, please
check there if your issue has already been reported. If you spotted it first,
help us smashing it by providing a detailed and welcomed feedback.

Credits
=======

Contributors
------------

* Jairo Llopis <yajo.sk8@gmail.com>
* Vicent Cubells <vicent.cubells@tecnativa.com>

Maintainer
----------

.. image:: https://odoo-community.org/logo.png
   :alt: Odoo Community Association
   :target: https://odoo-community.org

This module is maintained by the OCA.

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

To contribute to this module, please visit https://odoo-community.org.
            

Raw data

            {
    "_id": null,
    "home_page": "https://tecnativa.com",
    "name": "odoo9-addon-html-image-url-extractor",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Tecnativa, Odoo Community Association (OCA)",
    "author_email": "support@odoo-community.org",
    "download_url": "",
    "platform": "UNKNOWN",
    "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==========================\nImage URLs from HTML field\n==========================\n\nThis module includes a method that extracts image URLs from any chunk of HTML,\nin appearing order.\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 images from an HTML field\n        imgs = self.env[\"ir.fields.converter\"].imgs_from_html(self.html_field)\n        for url in imgs:\n            # Do stuff with those URLs\n            pass\n\nQWeb example::\n\n    <!-- Extract first image from a blog post -->\n    <t t-foreach=\"env['ir.fields.converter']\n                  .imgs_from_html(blog_post.content, 1)\"\n       t-as=\"url\">\n        <img t-att-href=\"url\"/>\n    </t>\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* The regexp to find the URL could be better.\n\nBug Tracker\n===========\n\nBugs are tracked on `GitHub Issues\n<https://github.com/OCA/server-tools/issues>`_. 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 <yajo.sk8@gmail.com>\n* Vicent Cubells <vicent.cubells@tecnativa.com>\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.",
    "bugtrack_url": null,
    "license": "AGPL-3",
    "summary": "Extract images found in any HTML field",
    "version": "9.0.1.0.0",
    "project_urls": {
        "Homepage": "https://tecnativa.com"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ea35194f82a078526b17cadb91849063b3fe278570baf6dd3398b1e146d62c0c",
                "md5": "cfecf0961684a6a42a23b71a4b02c6ec",
                "sha256": "e8b23b96906a1735e9ede166aadaf34f2b044461d0f76a57ca726d2c0ec938aa"
            },
            "downloads": -1,
            "filename": "odoo9_addon_html_image_url_extractor-9.0.1.0.0-py2-none-any.whl",
            "has_sig": false,
            "md5_digest": "cfecf0961684a6a42a23b71a4b02c6ec",
            "packagetype": "bdist_wheel",
            "python_version": "py2",
            "requires_python": null,
            "size": 20461,
            "upload_time": "2017-04-11T18:50:14",
            "upload_time_iso_8601": "2017-04-11T18:50:14.129679Z",
            "url": "https://files.pythonhosted.org/packages/ea/35/194f82a078526b17cadb91849063b3fe278570baf6dd3398b1e146d62c0c/odoo9_addon_html_image_url_extractor-9.0.1.0.0-py2-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2017-04-11 18:50:14",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "odoo9-addon-html-image-url-extractor"
}
        
Elapsed time: 0.07422s