[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces - copy.py:1.3 event.py:1.6 http.py:1.2
Sidnei da Silva
sidnei@x3ng.com.br
Tue, 11 Feb 2003 11:00:21 -0500
Update of /cvs-repository/Zope3/src/zope/app/interfaces
In directory cvs.zope.org:/tmp/cvs-serv3664/src/zope/app/interfaces
Modified Files:
copy.py event.py http.py
Log Message:
Merging paris-copypasterename-branch. Not very fun :(
=== Zope3/src/zope/app/interfaces/copy.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/interfaces/copy.py:1.2 Mon Feb 3 07:34:01 2003
+++ Zope3/src/zope/app/interfaces/copy.py Tue Feb 11 10:59:49 2003
@@ -22,7 +22,7 @@
class IObjectCopier(Interface):
def copyTo(target, name=None):
- '''Copy this object to the target given.
+ """Copy this object to the target given.
Returns the new name within the target, or None
if the target doesn't do names.
@@ -31,7 +31,7 @@
an IObjectCopied event in the context of the target container.
If a new object is created as part of the copying process, then
an IObjectCreated event should be published.
- '''
+ """
def copyable():
'''Returns True if the object is copyable, otherwise False.'''
@@ -43,3 +43,21 @@
False.
'''
+class IPrincipalClipboard(Interface):
+ '''Interface for adapters that store/retrieve clipboard information
+ for a principal.
+
+ Clipboard information consists on tuples of {'action':action, 'target':target}.
+ '''
+
+ def clearContents():
+ '''Clear the contents of the clipboard'''
+
+ def addItems(action, targets):
+ '''Add new items to the clipboard'''
+
+ def setContents(clipboard):
+ '''Replace the contents of the clipboard by the given value'''
+
+ def getContents():
+ '''Return the contents of the clipboard'''
=== Zope3/src/zope/app/interfaces/event.py 1.5 => 1.6 ===
--- Zope3/src/zope/app/interfaces/event.py:1.5 Mon Feb 3 10:59:14 2003
+++ Zope3/src/zope/app/interfaces/event.py Tue Feb 11 10:59:49 2003
@@ -302,3 +302,7 @@
fromLocation = Attribute("The old location for the object.")
+class IObjectCopiedEvent(IObjectEvent):
+ """An object has been copied"""
+
+ fromLocation = Attribute("The old location for the object.")
=== Zope3/src/zope/app/interfaces/http.py 1.1 => 1.2 ===