[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/Folder/tests - testFolderAdder.py:1.1.2.3
Jim Fulton
jim@zope.com
Sat, 9 Feb 2002 09:07:36 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Folder/tests
In directory cvs.zope.org:/tmp/cvs-serv13351/Folder/tests
Modified Files:
Tag: Zope-3x-branch
testFolderAdder.py
Log Message:
Refactored addable registry and added separate content and service addables
=== Zope3/lib/python/Zope/App/OFS/Folder/tests/testFolderAdder.py 1.1.2.2 => 1.1.2.3 ===
from Zope.App.OFS.Folder.FolderAdder import DuplicateIDError
from Zope.App.OFS.Folder.Folder import Folder
-from Zope.App.ZMI.Addable import provideAddable
+from Zope.App.ZMI.Addable import ContentAddables
from Zope.App.ZMI.provideClass import provideClass
class Foo: pass
@@ -53,7 +53,7 @@
]
for datum in data:
- apply( provideAddable, datum, {} )
+ apply( ContentAddables.provideAddable, datum, {} )
folder = Folder()
fa = FolderAdder( folder )
info_list = fa.listAddableInfo()