[CMF-checkins] CVS: CMF/CMFCore/tests/base - dummy.py:1.3.6.1

Chris McDonough chrism@zope.com
Wed, 31 Jul 2002 01:31:50 -0400


Update of /cvs-repository/CMF/CMFCore/tests/base
In directory cvs.zope.org:/tmp/cvs-serv11157/tests/base

Modified Files:
      Tag: chrism-actions-branch
	dummy.py 
Log Message:
Modified actions handling:

- Actions tool no longer swallows action dictionary elements it doesn't
  understand.

- listFilteredActionsFor refactored.

- ActionInformation objects grew some new methods as utilities.

This is on a branch for now until Tres has a chance to look at it,
as it's a somewhat big patch.


=== CMF/CMFCore/tests/base/dummy.py 1.3 => 1.3.6.1 ===
 from Products.CMFCore.TypesTool import TypeInformation
 from Products.CMFCore.TypesTool import FactoryTypeInformation
 from Products.CMFCore.ActionProviderBase import ActionProviderBase
+from Products.CMFCore.ActionInformation import ActionInformation
 
 class DummyObject(Implicit):
     """
@@ -168,8 +169,8 @@
     """
 
     _actions = [
-        DummyObject(),
-        DummyObject()
+        ActionInformation('a'),
+        ActionInformation('b'),
         ]
 
     root = 'DummyTool'