[Zope3-checkins] CVS: Zope3/src/zope/app/services/tests - test_cachingservice.py:1.14

Jim Fulton jim at zope.com
Sun Sep 21 13:33:12 EDT 2003


Update of /cvs-repository/Zope3/src/zope/app/services/tests
In directory cvs.zope.org:/tmp/cvs-serv15135/src/zope/app/services/tests

Modified Files:
	test_cachingservice.py 
Log Message:
Use helper function to add registrations.


=== Zope3/src/zope/app/services/tests/test_cachingservice.py 1.13 => 1.14 ===
--- Zope3/src/zope/app/services/tests/test_cachingservice.py:1.13	Tue Aug 19 13:34:28 2003
+++ Zope3/src/zope/app/services/tests/test_cachingservice.py	Sun Sep 21 13:33:12 2003
@@ -64,11 +64,11 @@
         if not cname:
             cname = name
         default = traverse(self.rootFolder, folder +'/++etc++site/default')
-        key = default.setObject(cname, cache)
-        cache = traverse(default, key)
+        default[cname] = cache
+        cache = traverse(default, cname)
         path = "%s/%s" % (zapi.getPath(default), name)
         registration = UtilityRegistration(name, ICache, path)
-        key = default.getRegistrationManager().setObject("", registration)
+        key = default.getRegistrationManager().addRegistration(registration)
         zapi.traverse(default.getRegistrationManager(), key).status = status
         return zapi.traverse(default, name)    
 




More information about the Zope3-Checkins mailing list