{ "info": { "author": "Agendaless Consulting", "author_email": "repoze-dev@lists.repoze.org", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "Programming Language :: Python" ], "description": "repoze.bfg.traversalwrapper\n===========================\n\nAn alternate implementation of the\n``repoze.bfg.interfaces.ITraverserFactory`` (a \"traverser\") which\nwraps each traversed object in a proxy. This allows a\n\"location-ignorant\" model (a model which does not possess intrinsic\n``__name__`` and ``__parent__`` attributes) to be used as the root\nobject and as any object returned from any other model's\n``__getitem__`` method during traversal.\n\nWhen this ITraverserFactory is registered as the traverser for a\n``repoze.bfg`` application, during traversal, each object, including\nthe root object is wrapped in a proxy. The proxy that provides the\ntraversed object with a ``__name__`` and ``__parent__`` attribute.\nThe ``__name__`` and ``__parent__`` attributes of the root proxy are\nboth ``None``. The ``__name__`` of subsequently traversed object is\nthe Unicode URL segment name which was used to look it up. The\n``__parent__`` of subsequently traversed objects is the previous\nobject traversed.\n\nIn order to enable this package's ITraverserFactory, register the\n``repoze.bfg.traversalwrapper.ModelGraphTraverser`` as the traversal\npolicy, rather than the default ``ModelGraphTraverser``. To use this\nfeature, your application will need to have a dependency on this\npackage, as well as following stanza in its ``configure.zcml``::\n\n \n\n.. note:: When this ITraverserFactory is used, the intrinsic\n ``__name__`` or ``__parent__`` attribute of an object are ignored.\n Even if an object in the graph (including the root objects) has an\n intrinsic ``__name__`` and ``__parent__`` attribute, it will still\n be wrapped in a proxy that override the object's \"real\"\n ``__parent__`` and ``__name__`` attributes.\n\n\n\nrepoze.bfg.traversalwrapper Changelog\n=====================================\n\n0.3 (2009-06-22)\n-----------------\n\n- Compatibility with BFG 1.0a1. This version is not guaranteed to be\n compatible with any BFG version before 1.0a1.\n\n0.2 (2008-05-18)\n----------------\n\n- Use dictionary return values from our ITraverser in lockstep with\n changes to 0.8dev.\n\n0.1\n---\n\n- Initial release (functionality moved out of BFG core).", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://bfg.repoze.org", "keywords": "bfg repoze.bfg traverser traversal proxy", "license": "BSD-derived (http://www.repoze.org/LICENSE.txt)", "maintainer": null, "maintainer_email": null, "name": "repoze.bfg.traversalwrapper", "package_url": "https://pypi.org/project/repoze.bfg.traversalwrapper/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/repoze.bfg.traversalwrapper/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://bfg.repoze.org" }, "release_url": "https://pypi.org/project/repoze.bfg.traversalwrapper/0.3/", "requires_dist": null, "requires_python": null, "summary": "An add-on for the repoze.bfg web framework which supplies a model graph traverser which proxies location-ignorant model objects", "version": "0.3" }, "last_serial": 798800, "releases": { "0.3": [ { "comment_text": "", "digests": { "md5": "3c680d850f674bbcb24d737b03d1ffca", "sha256": "0e6fb4a81426b3a5b309182a60ee951897c6fc7dd012961ff53799af5dba19f8" }, "downloads": -1, "filename": "repoze.bfg.traversalwrapper-0.3.tar.gz", "has_sig": false, "md5_digest": "3c680d850f674bbcb24d737b03d1ffca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11067, "upload_time": "2009-08-22T02:29:10", "url": "https://files.pythonhosted.org/packages/1f/a5/b535bf6772b29cc2145f952238f07032c977c999af6d096a51fa636e8236/repoze.bfg.traversalwrapper-0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3c680d850f674bbcb24d737b03d1ffca", "sha256": "0e6fb4a81426b3a5b309182a60ee951897c6fc7dd012961ff53799af5dba19f8" }, "downloads": -1, "filename": "repoze.bfg.traversalwrapper-0.3.tar.gz", "has_sig": false, "md5_digest": "3c680d850f674bbcb24d737b03d1ffca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11067, "upload_time": "2009-08-22T02:29:10", "url": "https://files.pythonhosted.org/packages/1f/a5/b535bf6772b29cc2145f952238f07032c977c999af6d096a51fa636e8236/repoze.bfg.traversalwrapper-0.3.tar.gz" } ] }