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

runyaga runyaga@thisbox.com
Tue, 4 Feb 2003 10:42:48 -0500


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

Modified Files:
      Tag: paris-copypasterename-branch
	copy.py 
Log Message:
putting this into cvs because my hands are cold


=== Zope3/src/zope/app/copy.py 1.2.2.1 => 1.2.2.2 ===
--- Zope3/src/zope/app/copy.py:1.2.2.1	Tue Feb  4 06:46:41 2003
+++ Zope3/src/zope/app/copy.py	Tue Feb  4 10:42:15 2003
@@ -1,4 +1,5 @@
 from zope.app.traversing import getParent
+from zope.component import getAdapter
 from zope.app.interfaces.copy import IObjectMover
 from zope.app.interfaces.copy import IObjectCopier
 
@@ -10,7 +11,7 @@
     def __init__(self, object):
         self.context = object
 
-    def moveTo(target, name=None):
+    def moveTo(self, target, name=None):
         '''Move this object to the target given.
         
         Returns the new name within the target
@@ -28,11 +29,11 @@
         # publish ObjectMovedEvent
         return new_name
         
-    def moveable():
+    def moveable(self):
         '''Returns True if the object is moveable, otherwise False.'''
         return True
 
-    def moveableTo(target, name=None):
+    def moveableTo(self, target, name=None):
         '''Say whether the object can be moved to the given target.
 
         Returns True if it can be moved there. Otherwise, returns
@@ -51,7 +52,7 @@
     def __init__(self, object):
         self.context = object
 
-    def copyTo(target, name=None):
+    def copyTo(self, target, name=None):
         """Copy this object to the target given.
 
         Returns the new name within the target, or None
@@ -74,11 +75,11 @@
         # publish ObjectCopiedEvent
         return new_name
 
-    def copyable():
+    def copyable(self):
         '''Returns True if the object is copyable, otherwise False.'''
         return True
 
-    def copyableTo(target, name=None):
+    def copyableTo(self, target, name=None):
         '''Say whether the object can be copied to the given target.
         
         Returns True if it can be copied there. Otherwise, returns