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

Grégoire Weber zope.org at incept.ch
Thu Jul 22 09:48:18 EDT 2004


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

Modified Files:
	IOpaqueItems.py 
Log Message:
- The object to which the opaque item has to be assigned has now to be passed the __init__ method of the IOpaqueItems interface
- updated unit tests accordingly


=== Products/CMFCore/interfaces/IOpaqueItems.py 1.5 => 1.6 ===
--- Products/CMFCore/interfaces/IOpaqueItems.py:1.5	Mon Jul 19 19:42:09 2004
+++ Products/CMFCore/interfaces/IOpaqueItems.py	Thu Jul 22 09:47:48 2004
@@ -30,12 +30,16 @@
     get called if available. Unavailable hooks do not throw exceptions.
     """
 
+    def __init__(obj, id):
+        """Return the opaque item and assign it to 'obj' as attr with 'id'.
+        """
+    
     def __call__():
-        """Returns the opaque items value.
+        """Return the opaque items value.
         """
     
     def getId():
-        """Returns the name of the attribute the opaque item is assigend to.
+        """Return the id of the opaque item.
         """
 
 class ICallableOpaqueItemEvents(Interface):



More information about the CMF-checkins mailing list