[CMF-checkins] CVS: Products/CMFCore/interfaces - IOpaqueItems.py:1.3

Grégoire Weber zope.org at incept.ch
Wed Jun 30 11:27:55 EDT 2004


Update of /cvs-repository/Products/CMFCore/interfaces
In directory cvs.zope.org:/tmp/cvs-serv23361/interfaces

Modified Files:
	IOpaqueItems.py 
Log Message:
Added 'getId' and '__call__' methods to the IOpaqueItemsWithHooks interface und updated unit tests accordingly.


=== Products/CMFCore/interfaces/IOpaqueItems.py 1.2 => 1.3 ===
--- Products/CMFCore/interfaces/IOpaqueItems.py:1.2	Mon Apr 26 08:34:10 2004
+++ Products/CMFCore/interfaces/IOpaqueItems.py	Wed Jun 30 11:27:25 2004
@@ -20,12 +20,20 @@
 
 
 class ICallableOpaqueItemWithHooks(Interface):
-    """Marker interface for callable opaque items with manage_* hooks.
+    """Interface for callable opaque items with manage_* hooks.
 
     Opaque items are subelements that are contained using something that
     is not an ObjectManager.
 
     On add, copy, move and delete operations a marked opaque items
     'manage_afterAdd', 'manage_afterClone' and 'manage_beforeDelete' hooks
-    get called.
+    get called if available. Unavailable hooks do not throw exceptions.
     """
+
+    def __call__():
+        """Returns the opaque items value.
+        """
+    
+    def getId():
+        """Returns the name of the attribute the opaque item is assigend to.
+        """



More information about the CMF-checkins mailing list