[CMF-checkins] CVS: Products/CMFCore/tests -
test_PortalContent.py:1.6
Jens Vagelpohl
jens at dataflake.org
Mon Feb 28 15:13:28 EST 2005
Update of /cvs-repository/Products/CMFCore/tests
In directory cvs.zope.org:/tmp/cvs-serv24521
Modified Files:
test_PortalContent.py
Log Message:
- Avoid deprecation message during CMFCore test runs by replacing an
invocation of manage_addCMFSite with CMFSetup's addConfiguredSite
=== Products/CMFCore/tests/test_PortalContent.py 1.5 => 1.6 ===
--- Products/CMFCore/tests/test_PortalContent.py:1.5 Fri Sep 3 11:58:48 2004
+++ Products/CMFCore/tests/test_PortalContent.py Mon Feb 28 15:13:26 2005
@@ -32,7 +32,8 @@
RequestTest.setUp(self)
try:
newSecurityManager(None, UnrestrictedUser('manager', '', ['Manager'], []))
- self.root.manage_addProduct['CMFDefault'].manage_addCMFSite('cmf')
+ factory = self.root.manage_addProduct['CMFSetup'].addConfiguredSite
+ factory('cmf', 'default')
self.site = self.root.cmf
get_transaction().commit(1) # Make sure we have _p_jars
except:
More information about the CMF-checkins
mailing list