[Checkins] SVN: zc.objectlog/trunk/src/zc/objectlog/copier. Convert to use new zc.copy and zc.freeze packages instead of zc.copyversion

Gary Poster gary at zope.com
Wed Aug 23 23:13:44 EDT 2006


Log message for revision 69751:
  Convert to use new zc.copy and zc.freeze packages instead of zc.copyversion
  

Changed:
  U   zc.objectlog/trunk/src/zc/objectlog/copier.py
  U   zc.objectlog/trunk/src/zc/objectlog/copier.txt

-=-
Modified: zc.objectlog/trunk/src/zc/objectlog/copier.py
===================================================================
--- zc.objectlog/trunk/src/zc/objectlog/copier.py	2006-08-24 03:13:14 UTC (rev 69750)
+++ zc.objectlog/trunk/src/zc/objectlog/copier.py	2006-08-24 03:13:43 UTC (rev 69751)
@@ -1,11 +1,11 @@
 
 import zope.component
 import zope.interface
-import zc.copyversion.interfaces
+import zc.copy.interfaces
 from zc.objectlog import interfaces, log
 
 @zope.component.adapter(interfaces.ILog)
- at zope.interface.implementer(zc.copyversion.interfaces.ICopyHook)
+ at zope.interface.implementer(zc.copy.interfaces.ICopyHook)
 def objectlog_copyfactory(original):
     def factory(location, register):
         obj = log.Log(original.record_schema)
@@ -14,4 +14,4 @@
             obj.__name__ = obj.__name__
         register(reparent)
         return obj
-    return factory
\ No newline at end of file
+    return factory

Modified: zc.objectlog/trunk/src/zc/objectlog/copier.txt
===================================================================
--- zc.objectlog/trunk/src/zc/objectlog/copier.txt	2006-08-24 03:13:14 UTC (rev 69750)
+++ zc.objectlog/trunk/src/zc/objectlog/copier.txt	2006-08-24 03:13:43 UTC (rev 69751)
@@ -1,5 +1,5 @@
 The copier module provides an adapter that can be used with
-zc.copyversion.copier.copy (and thus the replacement ObjectCopier also in the
+zc.copy.copy (and thus the replacement ObjectCopier also in the
 same module) so that copies of objects with an object log get fresh logs.
 
 For instance, consider the following.  
@@ -38,10 +38,10 @@
 
     >>> import zope.component
     >>> import zc.objectlog.copier
-    >>> import zc.copyversion.copier
+    >>> import zc.copy
     >>> zope.component.provideAdapter(
     ...     zc.objectlog.copier.objectlog_copyfactory)
-    >>> emily_clone = zc.copyversion.copier.copy(emily)
+    >>> emily_clone = zc.copy.copy(emily)
     >>> len(emily_clone.log)
     0
     >>> emily_clone.log.__parent__ is emily_clone
@@ -50,4 +50,4 @@
 Just to make sure that emily hasn't been touched:
 
     >>> len(emily.log)
-    1
\ No newline at end of file
+    1



More information about the Checkins mailing list