[Zope3-checkins] CVS: Zope3/src/zope/configuration/tests - hooktestdummymodule.py:1.3 test_hookregistry.py:NONE

Jim Fulton jim@zope.com
Sun, 18 May 2003 14:07:15 -0400


Update of /cvs-repository/Zope3/src/zope/configuration/tests
In directory cvs.zope.org:/tmp/cvs-serv11328/src/zope/configuration/tests

Modified Files:
	hooktestdummymodule.py 
Removed Files:
	test_hookregistry.py 
Log Message:
Updated hook configuration to use the new hooking machinery.

Also simplified hook zcml configuration. It is no longer necessary to
declare that something is hookable before hooking it. After all, we
can now introspect objects to determine if they are hookable.


=== Zope3/src/zope/configuration/tests/hooktestdummymodule.py 1.2 => 1.3 ===
--- Zope3/src/zope/configuration/tests/hooktestdummymodule.py:1.2	Wed Dec 25 09:13:34 2002
+++ Zope3/src/zope/configuration/tests/hooktestdummymodule.py	Sun May 18 14:06:45 2003
@@ -15,12 +15,11 @@
 
 $Id$
 """
+from zope.hookable import hookable
 
 def dummyHookable():
-    return dummyHookable_hook()
-
-def dummyHookable_hook():
     return "original implementation"
+dummyHookable = hookable(dummyHookable)
 
 def associatedDummy():
     return dummyHookable()

=== Removed File Zope3/src/zope/configuration/tests/test_hookregistry.py ===