[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/tests/setup.py Now that the hooks are always set, we do not need setup to worry about

Stephan Richter srichter at cosmos.phy.tufts.edu
Tue Jul 13 20:25:18 EDT 2004


Log message for revision 26518:
  Now that the hooks are always set, we do not need setup to worry about
  it anymore.
  


Changed:
  U   Zope3/trunk/src/zope/app/tests/setup.py


-=-
Modified: Zope3/trunk/src/zope/app/tests/setup.py
===================================================================
--- Zope3/trunk/src/zope/app/tests/setup.py	2004-07-14 00:01:29 UTC (rev 26517)
+++ Zope3/trunk/src/zope/app/tests/setup.py	2004-07-14 00:25:17 UTC (rev 26518)
@@ -89,13 +89,10 @@
 
 #------------------------------------------------------------------------
 # Placeful setup
-from zope.app.component.hooks import getServices_hook, adapter_hook
 from zope.app.tests.placelesssetup import setUp as placelessSetUp
 from zope.app.tests.placelesssetup import tearDown as placelessTearDown
 def placefulSetUp(site=False):
     placelessSetUp()
-    zope.component.getServices.sethook(getServices_hook)
-    zope.component.adapter_hook.sethook(adapter_hook)
     setUpAnnotations()
     setUpDependable()
     setUpTraversal()
@@ -110,7 +107,6 @@
 from zope.app.component.hooks import setSite
 def placefulTearDown():
     placelessTearDown()
-    zope.component.getServices.reset()
     setSite()
 
 



More information about the Zope3-Checkins mailing list