{ "info": { "author": "Dieter Maurer", "author_email": "dieter@handshake.de", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Framework :: Zope2", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Utilities" ], "description": "A ``Reference`` is a Zope object refering to another Zope object,\ncalled its *Target*.\nThe target it identified by a path relative to the parent\nof the ``Reference``.\nIt is resolved into the target through ``restrictedTraverse``.\n\nThe attribute ``Target`` as well as the method ``getTarget`` give\nthe target object.\n\nA ``Reference`` behaves almost like its target. It appears to have\n(most of) its attributes and methods.\nIn this sense, it is very similar to Shane's ``Symlink`` product.\nUnlike a ``Symlink``, however, a ``Reference`` has its own\nid, title and management facilities and therefore\ncan be distinguished from the refered to object.\nThis is very difficult for a ``SymLink``;\ntherefore, I consider ``Reference`` safer.\n\nOn lookup, a ``Reference`` prefers its own attributes over\nthose of the target. This means that it behaves as a reference\nand partially as its target.\n\nCaveats\n=======\nThere are security weaknesses: the ``setDefaultAccess('allow')``\nand the ``declareObjectProtected('Access contents information')``\nof ``Reference`` spill over to the target when accessed through the\nreference. This is a side effect of Zope's (strange) security\npolicy.\n\nIn order to ensure manageability of the Reference,\n``__before_publishing_traverse__`` and ``__bobo_traverse__``\nare not relayed to the target.\n\nIt is very difficult (I think impossible) to emulate the\nspecial treatment of Python Methods by acquisition.\nThe current implementation tries hard to emulate enough\nthat Python Scripts (and similar objects) get correct bindings.\nHowever, the acquisition context is otherwise different from\nhow it were when directly called.\n\nZope toolkit (aka Zope3) adapters (this includes views) may not work\non references as you expect\nbecause the adapters see the interfaces implemented\nby the reference itself, not those of the refered to object.", "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/Products.References", "keywords": "Zope 2,reference,symbolic link", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "Products.References", "package_url": "https://pypi.org/project/Products.References/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/Products.References/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://pypi.python.org/pypi/Products.References" }, "release_url": "https://pypi.org/project/Products.References/1.0/", "requires_dist": null, "requires_python": null, "summary": "References to Zope objects for Zope 2.10 (or above)", "version": "1.0" }, "last_serial": 785111, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "95955d0776cef2e522d9a677fe0efad4", "sha256": "3103656889a6c561e5efa776ccdd8ab420d660de80ae1d3a9bfa25333e418fdf" }, "downloads": -1, "filename": "Products.References-1.0.tar.gz", "has_sig": false, "md5_digest": "95955d0776cef2e522d9a677fe0efad4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8568, "upload_time": "2010-03-17T19:28:20", "url": "https://files.pythonhosted.org/packages/ad/4f/10495764b30e77b38b9f9cf904693b07f6f8ffea033d6833fd7e449f0b0f/Products.References-1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "95955d0776cef2e522d9a677fe0efad4", "sha256": "3103656889a6c561e5efa776ccdd8ab420d660de80ae1d3a9bfa25333e418fdf" }, "downloads": -1, "filename": "Products.References-1.0.tar.gz", "has_sig": false, "md5_digest": "95955d0776cef2e522d9a677fe0efad4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8568, "upload_time": "2010-03-17T19:28:20", "url": "https://files.pythonhosted.org/packages/ad/4f/10495764b30e77b38b9f9cf904693b07f6f8ffea033d6833fd7e449f0b0f/Products.References-1.0.tar.gz" } ] }