[Checkins] SVN: zope3docs/source/migration/34to35.rst Add note about merge of zc.copy into zope.copy/zope.copypastemove/zope.location.
Dan Korostelev
nadako at gmail.com
Mon Feb 9 05:30:45 EST 2009
Log message for revision 96300:
Add note about merge of zc.copy into zope.copy/zope.copypastemove/zope.location.
Changed:
U zope3docs/source/migration/34to35.rst
-=-
Modified: zope3docs/source/migration/34to35.rst
===================================================================
--- zope3docs/source/migration/34to35.rst 2009-02-09 10:17:47 UTC (rev 96299)
+++ zope3docs/source/migration/34to35.rst 2009-02-09 10:30:44 UTC (rev 96300)
@@ -116,3 +116,24 @@
``Folder`` has moved to ``zope.container`` (and ``zope.site`` uses
this for its implementation of ``Folder``). This is not normally
something you should need to retain backwards compatibility.
+
+zc.copy -> zope.copy, zope.copypastemove, zope.location
+-------------------------------------------------------
+
+The pluggable object copying mechanism once developed in the ``zc.copy``
+package was merged back into ``zope.location``, ``zope.copypastemove``
+and the new ``zope.copy`` package. The ``zope.copy`` package now provides
+a pluggable mechanism for copying objects from ``zc.copy`` and doesn't
+depend on anything but ``zope.interface``. The ``zope.copypastemove``
+uses the ``copy`` function from ``zope.copy`` in its ``ObjectCopier``.
+
+The ``zope.location`` now provides an ``ICopyHook`` adapter that implements
+conditional copy functionality based on object locations, that old
+``zope.location.pickling.CopyPersistent`` used to provide. Note, that if
+you don't use ZCML configuration of ``zope.location``, you may need to
+register ``zope.location.pickling.LocationCopyHook`` yourself.
+
+The ``zope.location.pickling.locationCopy`` and ``zope.location.pickling.CopyPersistent``
+are now deprecated in favor of ``zope.copy`` and were replaced by deprecated
+imports. See ``zope.copy`` package documentation for information on how to
+use the new mechanism.
More information about the Checkins
mailing list