{ "info": { "author": "BlueDynamics Alliance", "author_email": "dev@bluedynamics.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "Tiles for use in pyramid framework\n==================================\n\nThis package provides rendering snippets of markup organized as tiles for the\npyramid framework.\n\nA tile is a piece of web application, i.e. a form, a navigation, etc.\n\nSplitting your application in such small and logic application parts makes it\neasy to re-use this application, simplifies application AJAXification and\nthe use of same application parts in different manners.\n\n\nUsage\n=====\n\nRegister tiles\n--------------\n\nA tile is registered similar to a pyramid view. Registration is done with the\n``cone.tile.registerTile`` function::\n\n >>> from cone.tile import registerTile\n >>> registerTile('a_tile',\n ... 'package:browser/templates/a_tile.pt',\n ... permission='view')\n\nor the ``cone.tile.tile`` decorator on classes::\n\n >>> from cone.tile import tile, Tile\n >>> @tile('b_tile', 'package:browser/templates/b_tile.pt',\n ... permission='view', strict=False)\n ... class BTile(Tile):\n ... pass\n\nBoth, decorator and register function accept following arguments:\n\n**name**\n Identifier of the tile (for later lookup).\n\n**path**\n Either relative path to the template or absolute path or path prefixed\n by the absolute package name delimeted by ':'. If ``path`` is used\n ``attribute`` is ignored.\n\n**attribute**\n Attribute on the given _class to be used to render the tile. Defaults to\n ``render``.\n\n**interface**\n Interface or class of the pyramid model the tile is registered for.\n\n**class_**\n Class to be used to render the tile. usally ``cone.tile.Tile`` or a\n subclass of. Promises to implement ``cone.tile.ITile``. When the ``tile``\n decorator is used, the decorated class is expected as tile implementation.\n\n**permission**\n Enables security checking for this tile. Defaults to ``view``. If set to\n ``None`` security checks are disabled.\n\n**strict**\n Wether to raise ``Forbidden`` or not if rendering is not permitted.\n Defaults to ``True``. If set to ``False`` the exception is consumed and an\n empty unicode string is returned.\n\nTiles can be overwritten later while application initialization by just\nregistering it again. This is useful for application theming and customization.\n\n\nRendering tiles\n---------------\n\nTile rendering with the ``render_tile`` function::\n\n >>> from cone.tile import render_tile\n >>> rendered = render_tile(model, request, name)\n\nInside templates which are bound to the tile, more tiles can be rendered on\ncurrent model and request via ``tile``::\n\n >>> \n\n- Jens Klein \n\n- Attila Olah\n\n\n\nChangelog\n=========\n\n0.9.6\n-----\n\n- Use ``traceback`` module instead of ``zope.exceptions`` to format\n exceptions in ``render_template``.\n [rnix, 2017-10-06]\n\n\n0.9.5\n-----\n\n- Remove ``log_exception`` utility and use registered ``IDebugLogger`` in\n ``cone.tile._api.render_template`` for exception logging.\n [rnix, 2017-03-24]\n\n\n0.9.4\n-----\n\n- Tile registration ``name`` is taken from ``Tile`` subclass if not given\n in ``registerTile`` function and ``tile`` decorator.\n [rnix, 2017-02-17]\n\n- ``name`` is now optional in ``registerTile`` function and ``tile`` decorator.\n [rnix, 2017-02-17]\n\n- Default ``attribute`` is now ``None`` in ``registerTile`` function and\n ``tile`` decorator to ensure considering ``attribute`` from ``Tile`` subclass\n if set.\n [rnix, 2017-02-17]\n\n- ``Tile.name``, ``Tile.path`` and ``Tile.attribute`` can be set on ``Tile``\n subclass directly without being overwritten at tile registration if not\n given.\n [rnix, 2017-02-17]\n\n\n0.9.3\n-----\n\n- Errors caught in ``render_tile`` may contain umlaute. Properly decode error\n string.\n [rnix, 2017-02-13]\n\n\n0.9.2\n-----\n\n- Using and depending now on zope.exceptions to format tracebacks with\n supplements.\n [jensens, 2012-06-06]\n\n- Improved visibility of tracebacks, they appear now in the error log.\n even if an expression like ```tal:replace=\"structure tile('editform')\"```\n ate it, the traceback is logged. traceback supplements are rendered.\n [jensens, 2012-06-05]\n\n- Removed superfluos try except\n [jensens, 2012-06-05]\n\n- Fixed dependencies for integrated tests\n [jensens, 2012-06-05]\n\n\n0.9.1\n-----\n\n- Tiles can be overwritten.\n [rnix, 2012-05-22]\n\n- Use ``zope.interface.implementer`` instead of ``zope.interface.implements``.\n [rnix, 2012-05-18]\n\n\n0.9\n---\n\n- Fit for pyramid 1.1 + 1.2\n [rnix, 2011-09-08]\n\n- Documentation\n [rnix, 2011-09-08]\n\n- Make it work\n [jensens, rnix, et. al]\n\n\n\nLicense\n=======\n\nCopyright (c) 2009-2017, BlueDynamics Alliance, Austria\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this \n list of conditions and the following disclaimer.\n* Redistributions in binary form must reproduce the above copyright notice, this \n list of conditions and the following disclaimer in the documentation and/or \n other materials provided with the distribution.\n* Neither the name of the BlueDynamics Alliance nor the names of its \n contributors may be used to endorse or promote products derived from this \n software without specific prior written permission.\n \nTHIS SOFTWARE IS PROVIDED BY BlueDynamics Alliance ``AS IS`` AND ANY\nEXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL BlueDynamics Alliance BE LIABLE FOR ANY\nDIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\nON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/bluedynamics/cone.tile", "keywords": "", "license": "Simplified BSD", "maintainer": "", "maintainer_email": "", "name": "cone.tile", "package_url": "https://pypi.org/project/cone.tile/", "platform": "", "project_url": "https://pypi.org/project/cone.tile/", "project_urls": { "Homepage": "https://github.com/bluedynamics/cone.tile" }, "release_url": "https://pypi.org/project/cone.tile/0.9.6/", "requires_dist": null, "requires_python": "", "summary": "Provide parts of a web application as tiles.", "version": "0.9.6" }, "last_serial": 3238914, "releases": { "0.9": [ { "comment_text": "", "digests": { "md5": "6dfd0ca9e44cd44dc929a6a3740c5440", "sha256": "217cfb85b669560230cc626dfbe2f9969b2d9e1364f258e936dac92b0ebe5ed9" }, "downloads": -1, "filename": "cone.tile-0.9.tar.gz", "has_sig": false, "md5_digest": "6dfd0ca9e44cd44dc929a6a3740c5440", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13094, "upload_time": "2011-09-20T14:38:27", "url": "https://files.pythonhosted.org/packages/b2/28/38aba6aacc4d39338cd18b9fa5bf478539d5d3b689c0fa01f2a42c79e4c1/cone.tile-0.9.tar.gz" } ], "0.9.1": [ { "comment_text": "", "digests": { "md5": "77850197f2e3756b37f4272653f26aef", "sha256": "9e52b067ceda192f131b0c8dd2d717db26b80650f6a7eb842ebc1f1c77563e77" }, "downloads": -1, "filename": "cone.tile-0.9.1.tar.gz", "has_sig": false, "md5_digest": "77850197f2e3756b37f4272653f26aef", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13377, "upload_time": "2012-05-30T11:22:01", "url": "https://files.pythonhosted.org/packages/ee/44/74bf784f27dbd15138dfaa02f00ddfa0b5a9614b80bd13a483fdfd69cfc7/cone.tile-0.9.1.tar.gz" } ], "0.9.2": [ { "comment_text": "", "digests": { "md5": "3964ba0e86ed9a0c4c979052867b8108", "sha256": "b6faae8c793b3d76e9cae51b5d212e4f2a55e491fb48243b5fbd379776443e1d" }, "downloads": -1, "filename": "cone.tile-0.9.2.tar.gz", "has_sig": false, "md5_digest": "3964ba0e86ed9a0c4c979052867b8108", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13821, "upload_time": "2012-11-01T22:06:00", "url": "https://files.pythonhosted.org/packages/ac/8e/09af7038398e4f656d07880431836bd5081c355063c2aa91d82f9d6718c5/cone.tile-0.9.2.tar.gz" } ], "0.9.3": [ { "comment_text": "", "digests": { "md5": "2eaa5a8e710b14c835610bd01a686cbd", "sha256": "20888103dd22ffcbfb4c725f9c6221d6b5e73c8410eb1cc203de34121accd747" }, "downloads": -1, "filename": "cone.tile-0.9.3.tar.gz", "has_sig": false, "md5_digest": "2eaa5a8e710b14c835610bd01a686cbd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13172, "upload_time": "2017-02-14T09:35:12", "url": "https://files.pythonhosted.org/packages/8b/c7/26547604f138ec988f8d696d7993062605dd5a924435b224b66e332701f0/cone.tile-0.9.3.tar.gz" } ], "0.9.4": [ { "comment_text": "", "digests": { "md5": "72db9ea6e8adf25237da78623d9f286a", "sha256": "49d7034979a31ed8208873b2d46526d3da1980a9aaa57648b4b78acae63ce993" }, "downloads": -1, "filename": "cone.tile-0.9.4.tar.gz", "has_sig": false, "md5_digest": "72db9ea6e8adf25237da78623d9f286a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14228, "upload_time": "2017-03-01T09:41:20", "url": "https://files.pythonhosted.org/packages/4f/9c/cc601f2446b14828a97a6f4d81c9085d924f539cb20bfc0748c4c4d7dd53/cone.tile-0.9.4.tar.gz" } ], "0.9.5": [ { "comment_text": "", "digests": { "md5": "9f62497bee148f83eebe70df2ff5ccd2", "sha256": "6658f6cc84e4e338780e06db463e70c5a66779748f320c42ea57855ed05e6f29" }, "downloads": -1, "filename": "cone.tile-0.9.5.tar.gz", "has_sig": false, "md5_digest": "9f62497bee148f83eebe70df2ff5ccd2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14292, "upload_time": "2017-03-28T16:08:27", "url": "https://files.pythonhosted.org/packages/c2/df/ff9570fded21cc9994ca4c94f05338ac29cf9549bc405695d3a10d0bebbc/cone.tile-0.9.5.tar.gz" } ], "0.9.6": [ { "comment_text": "", "digests": { "md5": "1730776acc97a8ea600e988a5c543012", "sha256": "2f67161400fb125f0ceac2c0690982efe91e748406df285b769f4b23620dc432" }, "downloads": -1, "filename": "cone.tile-0.9.6.tar.gz", "has_sig": false, "md5_digest": "1730776acc97a8ea600e988a5c543012", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15757, "upload_time": "2017-10-10T10:31:13", "url": "https://files.pythonhosted.org/packages/58/68/218c07eecd211b725f5bd277f736c19c596508fd81dc687798c377744c2b/cone.tile-0.9.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1730776acc97a8ea600e988a5c543012", "sha256": "2f67161400fb125f0ceac2c0690982efe91e748406df285b769f4b23620dc432" }, "downloads": -1, "filename": "cone.tile-0.9.6.tar.gz", "has_sig": false, "md5_digest": "1730776acc97a8ea600e988a5c543012", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15757, "upload_time": "2017-10-10T10:31:13", "url": "https://files.pythonhosted.org/packages/58/68/218c07eecd211b725f5bd277f736c19c596508fd81dc687798c377744c2b/cone.tile-0.9.6.tar.gz" } ] }