[Zope3-checkins] CVS: Zope3/src/zope/app - copy.py:1.2

Sidnei da Silva sidnei@x3ng.com.br
Tue, 4 Feb 2003 04:58:31 -0500


Update of /cvs-repository/Zope3/src/zope/app
In directory cvs.zope.org:/tmp/cvs-serv12255

Modified Files:
	copy.py 
Log Message:
Adapters should have an __init__ method. Never forget this.

=== Zope3/src/zope/app/copy.py 1.1 => 1.2 ===
--- Zope3/src/zope/app/copy.py:1.1	Mon Feb  3 12:10:55 2003
+++ Zope3/src/zope/app/copy.py	Tue Feb  4 04:58:28 2003
@@ -6,6 +6,9 @@
 
     __implements__ = IObjectMover
 
+    def __init__(self, container):
+        self.context = container
+
     def moveTo(target, name=None):
         '''Move this object to the target given.
         
@@ -31,6 +34,9 @@
 class ObjectCopier:
 
     __implements__ = IObjectCopier
+
+    def __init__(self, container):
+        self.context = container
 
     def copyTo(target, name=None):
         """Copy this object to the target given.