{ "info": { "author": "Matthew Wilkes", "author_email": "matthew@matthewwilkes.co.uk", "bugtrack_url": null, "classifiers": [ "Framework :: Plone", "Programming Language :: Python", "Topic :: Internet" ], "description": "collective.diversion\r\n====================\r\n\r\ncollective.diversion wraps the existing behaviour for broken objects in the ZODB and provides a lookup table that will\r\nbe processed in advance of passing down requests. This allows developers to declare old locations of their classes and\r\nhave them be automatically and seamlessly migrated to the new code on load.\r\n\r\n.. image :: https://secure.travis-ci.org/collective/collective.diversion.png?branch=master\r\n :target: http://travis-ci.org/collective/collective.diversion\r\n\r\nUsage\r\n-----\r\n\r\nSimply include the following ZCML declaration in your code::\r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\nCaveats\r\n-------\r\n\r\nDiverted classes will persist their new class when they are written. However, when ZODB stores references to persistent objects it stores both the oid and the name of the class. Those class name references will only be updated when the persistent object they are attached to is re-serialised (modified). Unfortunately this package cannot do this for you as there is no way to find the set of objects which reference a particular object (quickly). You'll have to leave the diversion directives in your package until you can confirm that all instances and all references have been updated.\r\n\r\nChangelog\r\n=========\r\n\r\n1.0 (Unreleased)\r\n----------------\r\n\r\n* Overrides the cPickle.Unpickler class in ZODB ExportImport to allow for copy/paste as well as export.\r\n (MatthewWilkes)\r\n* Rebind the class factory to existing DB connections on initialization\r\n (MatthewWilkes)\r\n* ZCML declaration to register diversions\r\n* Implementation of classFactory that uses diversions\r\n\r\nContributors\r\n============\r\n\r\nTom Blockley\r\nAlan Hoey\r\nMatthew Wilkes\r\n\r\nSponsored by\r\n------------\r\n\r\nTeam Rubber, Bristol", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/collective/collective.diversion", "keywords": "Zope ZODB", "license": "GPL", "maintainer": "", "maintainer_email": "", "name": "collective.diversion", "package_url": "https://pypi.org/project/collective.diversion/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/collective.diversion/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/collective/collective.diversion" }, "release_url": "https://pypi.org/project/collective.diversion/1.0/", "requires_dist": null, "requires_python": null, "summary": "collective.diversion wraps the existing behaviour for broken objects in the ZODB to allow developers to declare old locations of their classes and have them be automatically migrated", "version": "1.0" }, "last_serial": 787759, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "e960990eade40a34d55695b423ae5cc1", "sha256": "fd8b4cfd6ff5d2f0dbca0c872564e69c78f3faa70fe3823e497effea881d140b" }, "downloads": -1, "filename": "collective.diversion-1.0.zip", "has_sig": false, "md5_digest": "e960990eade40a34d55695b423ae5cc1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 26670, "upload_time": "2013-04-22T13:42:35", "url": "https://files.pythonhosted.org/packages/c4/5e/1fbdef96f300c410d7e01adf42b9aaf82848b9bf844fcd358e1957478d3f/collective.diversion-1.0.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e960990eade40a34d55695b423ae5cc1", "sha256": "fd8b4cfd6ff5d2f0dbca0c872564e69c78f3faa70fe3823e497effea881d140b" }, "downloads": -1, "filename": "collective.diversion-1.0.zip", "has_sig": false, "md5_digest": "e960990eade40a34d55695b423ae5cc1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 26670, "upload_time": "2013-04-22T13:42:35", "url": "https://files.pythonhosted.org/packages/c4/5e/1fbdef96f300c410d7e01adf42b9aaf82848b9bf844fcd358e1957478d3f/collective.diversion-1.0.zip" } ] }