{ "info": { "author": "Martijn Faassen", "author_email": "faassen@startifact.com", "bugtrack_url": null, "classifiers": [ "Framework :: Zope3" ], "description": "Zope integration for hurry.resource\n***********************************\n\n.. Important::\n hurry.zoperesource has been superseded by\n `zope.fanstatic `_\n\nThis package provides Zope integration for hurry.resource. This means\nit's taking care of three things:\n\n* maintain the needed resources throughout the request/response cycle.\n\n* know how to make a URL to a resource.\n\n* make so that resource references are automatically inserted in the\n HTML header.\n\nThis library fulfills these conditions for a Zope Toolkit/Grok setup.\n\nWe'll run through a few tests to demonstrate it. Note that the real\ncode being tested is not in this document itself, but in the views described\nin ``ftesting.zcml``.\n\nWe need to be in a request to make this work, so let's up a request to\na page we have set up in ``ftesting.zcml`` that should cause the\ninclusion of a single resource in its header::\n\n >>> from zope.testbrowser.testing import Browser\n >>> browser = Browser()\n >>> browser.handleErrors = False\n >>> browser.open('http://localhost/hurry.zoperesource.test_single')\n >>> print browser.contents\n \n \n \n \n \n \n

the widget HTML itself

\n \n \n\nIf a resource happens to need another resource, this resource is also\nautomatically included::\n\n >>> browser.open('http://localhost/hurry.zoperesource.test_multiple')\n >>> print browser.contents\n \n \n \n \n \n \n \n

the widget HTML itself

\n \n \n\nLet's force all javascript resources to be forced to be included at\nthe bottom now, just before the ```` tag::\n\n >>> browser.open('http://localhost/hurry.zoperesource.test_bottom')\n >>> print browser.contents\n \n \n \n \n

the widget HTML itself

\n \n \n \n\nCHANGES\n*******\n\n.. Important::\n hurry.zoperesource has been superseded by\n `zope.fanstatic `_\n\n0.7 (2010-10-01)\n================\n\n- Created ResourceDirectories now are registered for ``IBrowserRequest`` the\n base class of the previously used ``IDefaultBrowserLayer``. So this\n package can be used when the layer used by the application does not extend\n ``IDefaultBrowserLayer``, as e. g. `z3c.layer.pagelet` does.\n\n\n0.6 (2010-07-29)\n================\n\n* Update to work with hurry.resource 0.10 and later. This uses the\n entry point mechanism to configure any libraries.\n\n Note that this needs hurry.resource-based packages that themselves\n have been updated to hurry.resource 0.10's way of defining an entry\n point and including the resource path in the library. See the\n `hurry.resource documentation\n `_ for more information.\n\n0.5 (2010-07-24)\n================\n\n* Drop the zope.app.component dependency.\n\n* Register the ILibraryUrl adapter for ILibrary instead of Library,\n to be less specific for the adapter lookup.\n\n* Clearly specify license as ZPL.\n\n0.4 (2009-12-16)\n================\n\n* Updated required packages.\n\n* Use a newer version of hurry.resource which can insert the snippets\n into HTML itself.\n\n0.3 (2008-12-05)\n================\n\n* ``resource.need()`` needed a request object set up in order to\n function. This is rather annoying in tests, which often don't have\n a request object set up. We now instead return a dummy\n ``NeededResources`` object in such cases (which will then be thrown\n away). As a result, it's always safe to call ``resource.need()``\n during tests, though if no request can be found it will have no\n effect.\n\n0.2 (2008-10-13)\n================\n\n* Add support for rendering fragments at the bottom of the page. When\n you call ``hurry.resource.bottom`` resources which are marked bottom-safe\n will be rendered at the bottom of the web page instead of in the ````\n section. When you call ``hurry.resource.bottom(force=True)``, *all*\n ``.js`` resources will be included at the bottom.\n\n0.1 (2008-10-11)\n================\n\n* Initial public release.\n\nDownload\n********", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://pypi.python.org/pypi/hurry.zoperesource", "keywords": "", "license": "ZPL", "maintainer": null, "maintainer_email": null, "name": "hurry.zoperesource", "package_url": "https://pypi.org/project/hurry.zoperesource/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/hurry.zoperesource/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://pypi.python.org/pypi/hurry.zoperesource" }, "release_url": "https://pypi.org/project/hurry.zoperesource/0.8/", "requires_dist": null, "requires_python": null, "summary": "hurry.resource integration for Zope.", "version": "0.8" }, "last_serial": 793136, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "0cb90084ff3a4e260f04e86fb091257d", "sha256": "9addc4cd0a54690b2c1a671f12887a2f30fd262950e92b9b8c0a4316804a5841" }, "downloads": -1, "filename": "hurry.zoperesource-0.1.tar.gz", "has_sig": false, "md5_digest": "0cb90084ff3a4e260f04e86fb091257d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4403, "upload_time": "2008-10-11T14:14:18", "url": "https://files.pythonhosted.org/packages/7d/fc/1b05fcaa0e1efd6e58f3ae9291bd2f1e6b88402e4e01ed8aab80dcf98ddd/hurry.zoperesource-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "65cc39aa8ba0ab1ff7018bf017bac9f2", "sha256": "4f6bfe06a8248dd67d1bd130df891de55dc26f75ea9148258172383c7722cf4f" }, "downloads": -1, "filename": "hurry.zoperesource-0.2.tar.gz", "has_sig": false, "md5_digest": "65cc39aa8ba0ab1ff7018bf017bac9f2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4813, "upload_time": "2008-10-13T19:55:57", "url": "https://files.pythonhosted.org/packages/70/a3/1656291cbe747080e28e4e7de6d4c58a7ad497220b7338569bfe31559250/hurry.zoperesource-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "53e240f098987ff09b91c79838bcaa16", "sha256": "af3fa6f621bac0ae022ae372c72a0b2013b2b86b112ae8d3adb363c390abba8e" }, "downloads": -1, "filename": "hurry.zoperesource-0.3.tar.gz", "has_sig": false, "md5_digest": "53e240f098987ff09b91c79838bcaa16", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5187, "upload_time": "2008-12-05T19:13:57", "url": "https://files.pythonhosted.org/packages/91/ea/76a9092956b0cdbe2fa78b03cc3691f780da0baf4b5cccaf8f298d9434ff/hurry.zoperesource-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "856e02fe7f9c84fe971b89a6bf8d544d", "sha256": "cc2cf45f1a91bbbeb4a4c11179cc399d16d76ffbc368e4d6bc02c247617f8321" }, "downloads": -1, "filename": "hurry.zoperesource-0.4.tar.gz", "has_sig": false, "md5_digest": "856e02fe7f9c84fe971b89a6bf8d544d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6795, "upload_time": "2009-12-16T18:49:13", "url": "https://files.pythonhosted.org/packages/8d/b7/250b9cf75bc5e4ada9d958e67ddf09de6655d5097b9b100f38c38a7eba44/hurry.zoperesource-0.4.tar.gz" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "04906ec11e91cb99144cf868476a1cc0", "sha256": "0b3af67660e16b27e4f4f0d65be13bdf8fbccd78cb129f6e1969cbb917e99ff9" }, "downloads": -1, "filename": "hurry.zoperesource-0.5.zip", "has_sig": false, "md5_digest": "04906ec11e91cb99144cf868476a1cc0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15945, "upload_time": "2010-07-24T15:18:39", "url": "https://files.pythonhosted.org/packages/58/b6/86714684936fd9df1f3631a7d761407b172bf476953bd078e5dbf1ae5cf8/hurry.zoperesource-0.5.zip" } ], "0.6": [ { "comment_text": "", "digests": { "md5": "7376605ff1a5392df633fde02bb42792", "sha256": "f0b743bebff48ca1cf3ca4a4719d86401a83e6396acbe00078a2c8357eb693fb" }, "downloads": -1, "filename": "hurry.zoperesource-0.6.tar.gz", "has_sig": false, "md5_digest": "7376605ff1a5392df633fde02bb42792", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8594, "upload_time": "2010-07-29T18:00:53", "url": "https://files.pythonhosted.org/packages/ea/dc/afa11fd9866b70c31e82540438939d7725631849d1078496bc1318451470/hurry.zoperesource-0.6.tar.gz" } ], "0.7": [ { "comment_text": "", "digests": { "md5": "b33c3d6d75412df9d879e6e15d93cd7c", "sha256": "b70de8e4f207cfc3fe62123b130875a1bc57d5902c85e3710abc3ab48013f480" }, "downloads": -1, "filename": "hurry.zoperesource-0.7.tar.gz", "has_sig": false, "md5_digest": "b33c3d6d75412df9d879e6e15d93cd7c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8753, "upload_time": "2010-10-02T10:18:25", "url": "https://files.pythonhosted.org/packages/d3/f2/c6ece34ef70366ea0ceb40c7375f3c2865ce6e248b34818e971091285186/hurry.zoperesource-0.7.tar.gz" } ], "0.8": [] }, "urls": [] }