[Checkins] SVN: zope.component/trunk/src/zope/component/README.txt note about interface declaration order for multi adapters

Johannes Raggam raggam-nl at adm.at
Mon Feb 28 06:00:36 EST 2011


Log message for revision 120593:
  note about interface declaration order for multi adapters

Changed:
  U   zope.component/trunk/src/zope/component/README.txt

-=-
Modified: zope.component/trunk/src/zope/component/README.txt
===================================================================
--- zope.component/trunk/src/zope/component/README.txt	2011-02-28 10:38:57 UTC (rev 120592)
+++ zope.component/trunk/src/zope/component/README.txt	2011-02-28 11:00:33 UTC (rev 120593)
@@ -183,6 +183,12 @@
 
     >>> component.provideAdapter(TwoPersonGreeter)
 
+Note that the declaration-order of the Interfaces beeing adapted to is
+important for adapter look up. It must be the the same as the order of
+parameters given to the adapter and used to query the adapter. This is
+especially the case when different Interfaces are adapt to (opposed to
+this example).
+
 To look up a multi-adapter, use either `queryMultiAdapter` or
 `getMultiAdapter`:
 



More information about the checkins mailing list