[Zope-Checkins] CVS: Zope3/lib/python/Zope/ComponentArchitecture - hooks.py:1.1.2.19

R. David Murray rdmurray@bitdance.com
Wed, 27 Mar 2002 15:50:36 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/ComponentArchitecture
In directory cvs.zope.org:/tmp/cvs-serv21806

Modified Files:
      Tag: Zope-3x-branch
	hooks.py 
Log Message:
A typo in the loop broke adapter configurations with multiple
factories.  Just the result of calling the last factory on the
object was returned, which worked fine if there was only one factory.
With the fix the factories are applied in order and the final
manufactured object returned.


=== Zope3/lib/python/Zope/ComponentArchitecture/hooks.py 1.1.2.18 => 1.1.2.19 ===
     result = object
     for maker in makers:
-        result = maker(object)
+        result = maker(result)
     return result
 
 def provideUtility_hook(providedInterface, component):