{ "info": { "author": "Therp BV,Acsone SA/NV,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" ], "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===========================\nParameterized Snippets\n===========================\n\nThis module adds extensions in order to render available \nto the programmer a new tag in qweb views: \"t-ignore-branding\".\nEverything inside this tag will be ignored by the qweb evaluator, \nallowing the code to be evaluated on the fly.\n\nThe final result of this will be dynamic parameters in your widgets.\nThis would allow widgets to be defined as \"Show the last 5 entries of\nthis model\" or \"Show all the data that has an attribute corresponding\nto the selected attibute\". \nWidgets therefore will display parameter-dependant (1,2, or n parameters) \ninformation, and most importantly keep it updated on every pageload.\n\n\nUsage\n=====\n\nCreating a Parametric Snippet:\n\n Create a normal snippet and in the snippet_body_section create a \n div that will contain the parametric part of the snippet content.\n Identify this div with a specific class, such as \"parametricTemplate\".\n This div will be empty ( we will inject via JS our template call code.)\n\n\n Create a template stanza with the content of your snippet.\n\n Create a snippet options entry with a data-snippet-option-id and \n a data-selector option.\n\n Create The javascript to tie everything together, the JS extends\n the snippet options by identifying it by data-snippet-option-id \n fetches the selected options and on clean_for_save event injects\n a t-call in the 'parametricTempalate' div of our actual content with\n attribute ('t-ignore-branding', '1') and append also t-sets of the \n desired parameters with their values, also with the attribute\n ('t-ignore-branding, '1') appended.\n\n\n\nExamples of modules that use this tag (will be updated)\n=======================================================\nwebsite_snippet_blog_display_post .\nwebsite_twitter_no_ext_links .\n\n\nFor further information, please visit:\n\n* https://www.odoo.com/forum/help-1\n\n\nBug Tracker\n===========\n\nBugs are tracked on `GitHub Issues `_.\nIn case of trouble, please check there if your issue has already been reported.\nIf you spotted it first, help us smashing it by providing a detailed and welcomed feedback\n`here `_.\n\nCredits\n=======\n\nThanks to Holger Brunn for the parametric t tag idea.\n\nThanks to Laurent Mignon for extending also website.qweb.field.html to render \nt-call elements inserted by snippets using the parametic approach and stored on the related model itself. \n\n\nContributors\n------------\n\n* Giovanni Francesco Capalbo \n* Holger Brunn \n* Laurent Mignon \n\nDo not contact contributors directly about help with questions or problems concerning this addon, but use the `community mailing list `_ or the `appropriate specialized mailinglist `_ for help, and the bug tracker linked in `Bug Tracker`_ above for technical issues.\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.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "", "license": "AGPL-3", "maintainer": "", "maintainer_email": "", "name": "odoo8-addon-website-parameterized-snippet", "package_url": "https://pypi.org/project/odoo8-addon-website-parameterized-snippet/", "platform": "", "project_url": "https://pypi.org/project/odoo8-addon-website-parameterized-snippet/", "project_urls": null, "release_url": "https://pypi.org/project/odoo8-addon-website-parameterized-snippet/8.0.1.0.0.99.dev10/", "requires_dist": [ "odoo (<9.0a,>=8.0a)" ], "requires_python": "~=2.7", "summary": "Parameterize snippets", "version": "8.0.1.0.0.99.dev10" }, "last_serial": 3998893, "releases": { "8.0.1.0.0.99.dev10": [ { "comment_text": "", "digests": { "md5": "ab8fe595a9ae94a7a9a5bfa9bc236d6e", "sha256": "211b20dcd76b8d459b979cc5f4092f6ee47bb612423eb3311404dec25c1e49b9" }, "downloads": -1, "filename": "odoo8_addon_website_parameterized_snippet-8.0.1.0.0.99.dev10-py2-none-any.whl", "has_sig": false, "md5_digest": "ab8fe595a9ae94a7a9a5bfa9bc236d6e", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": "~=2.7", "size": 15080, "upload_time": "2018-06-25T04:55:13", "url": "https://files.pythonhosted.org/packages/1a/e0/3161a7c044592e0f7f623d884aa2971d61d0f3ae3f3444872738405bb26e/odoo8_addon_website_parameterized_snippet-8.0.1.0.0.99.dev10-py2-none-any.whl" } ], "8.0.1.0.0.99.dev8": [ { "comment_text": "", "digests": { "md5": "731eb6daa40b1e9a761104cf51416ba6", "sha256": "964c265bb800803e406ad792e6d969d1184dc7eb2acb3399efd9971c74c8a373" }, "downloads": -1, "filename": "odoo8_addon_website_parameterized_snippet-8.0.1.0.0.99.dev8-py2-none-any.whl", "has_sig": false, "md5_digest": "731eb6daa40b1e9a761104cf51416ba6", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 14392, "upload_time": "2017-04-11T17:12:08", "url": "https://files.pythonhosted.org/packages/e2/84/be48606cd8be448fe0cb0c89def34cb3548a8da688c0828b7c980b6d7f49/odoo8_addon_website_parameterized_snippet-8.0.1.0.0.99.dev8-py2-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ab8fe595a9ae94a7a9a5bfa9bc236d6e", "sha256": "211b20dcd76b8d459b979cc5f4092f6ee47bb612423eb3311404dec25c1e49b9" }, "downloads": -1, "filename": "odoo8_addon_website_parameterized_snippet-8.0.1.0.0.99.dev10-py2-none-any.whl", "has_sig": false, "md5_digest": "ab8fe595a9ae94a7a9a5bfa9bc236d6e", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": "~=2.7", "size": 15080, "upload_time": "2018-06-25T04:55:13", "url": "https://files.pythonhosted.org/packages/1a/e0/3161a7c044592e0f7f623d884aa2971d61d0f3ae3f3444872738405bb26e/odoo8_addon_website_parameterized_snippet-8.0.1.0.0.99.dev10-py2-none-any.whl" } ] }