[CMF-checkins] CVS: Products/CMFCore/tests - test_OpaqueItems.py:1.6

Grégoire Weber zope.org at incept.ch
Mon Jul 19 08:02:02 EDT 2004


Update of /cvs-repository/Products/CMFCore/tests
In directory cvs.zope.org:/tmp/cvs-serv32046/tests

Modified Files:
	test_OpaqueItems.py 
Log Message:
- changed name of 'ICallableOpaqueItemWithHooks' to 'ICallableOpaqueItem'.
- added 'ICallableOpaqueItemEvents'.
- changed implementation and test accordingly.


=== Products/CMFCore/tests/test_OpaqueItems.py 1.5 => 1.6 ===
--- Products/CMFCore/tests/test_OpaqueItems.py:1.5	Wed Jun 30 11:27:25 2004
+++ Products/CMFCore/tests/test_OpaqueItems.py	Mon Jul 19 08:02:02 2004
@@ -6,7 +6,8 @@
 
 from types import StringType
 
-from Products.CMFCore.interfaces.IOpaqueItems import ICallableOpaqueItemWithHooks
+from Products.CMFCore.interfaces.IOpaqueItems 
+    import ICallableOpaqueItem, ICallableOpaqueItemEvents
 from Products.CMFCore.PortalFolder import PortalFolder
 from Products.CMFCore.tests.base.dummy import DummyContent as OriginalDummyContent
 from Products.CMFCore.tests.base.testcase import SecurityTest
@@ -76,13 +77,17 @@
     as callable
     """
     __implements__ = (
-        ICallableOpaqueItemWithHooks,
+        ICallableOpaqueItem,
     )
 
 class HooksOnly(OpaqueBase):
     """ Opaque item with manage_after/before hookes but not marked
     as callable
     """
+    __implements__ = (
+        ICallableOpaqueItemEvents
+    )
+    
     def manage_afterAdd(self, item, container):
         self.addCount = self.addCounter
         self.addCounter += 1
@@ -100,7 +105,7 @@
     """ Opaque item with manage_after/before hookes and marked
     as callable
     """
-    pass
+    __implements__ = HooksOnly.__implements__ + MarkerOnly.__implements__
 
 
 # -------------------------------------------



More information about the CMF-checkins mailing list