[Checkins] SVN: Zope3/branches/jim-adapter/src/zope/app/apidoc/component.txt There is now one more standard event handler in the component setup

Philipp von Weitershausen philikon at philikon.de
Fri Apr 7 08:45:28 EDT 2006


Log message for revision 66643:
  There is now one more standard event handler in the component setup
  

Changed:
  U   Zope3/branches/jim-adapter/src/zope/app/apidoc/component.txt

-=-
Modified: Zope3/branches/jim-adapter/src/zope/app/apidoc/component.txt
===================================================================
--- Zope3/branches/jim-adapter/src/zope/app/apidoc/component.txt	2006-04-07 12:44:47 UTC (rev 66642)
+++ Zope3/branches/jim-adapter/src/zope/app/apidoc/component.txt	2006-04-07 12:45:28 UTC (rev 66643)
@@ -49,11 +49,10 @@
    AdapterRegistration(<BaseGlobalComponents base>, 
                        [IFoo], IResult, '', None, u''), 
    HandlerRegistration(<BaseGlobalComponents base>, 
-                       [IFoo], u'', 'stubFactory', u'')]
+                       [IFoo], u'', 'stubFactory', u''),
+   HandlerRegistration(<BaseGlobalComponents base>,
+                       [Interface], u'', append, u'')]
 
-
-
-
 Note how the adapter requiring an `IRequest` at the end of the required
 interfaces is neglected. This is because it is recognized as a view and views
 are not returned by default. But you can simply turn this flag on:
@@ -68,10 +67,10 @@
    AdapterRegistration(<BaseGlobalComponents base>, 
                        [IFoo], IResult, '', None, u''), 
    HandlerRegistration(<BaseGlobalComponents base>, 
-                       [IFoo], u'', 'stubFactory', u'')]
+                       [IFoo], u'', 'stubFactory', u''),
+   HandlerRegistration(<BaseGlobalComponents base>,
+                       [Interface], u'', append, u'')]
 
-
-
 The function will also pick up registrations that have required interfaces the
 specified interface extends:
 
@@ -83,7 +82,9 @@
    AdapterRegistration(<BaseGlobalComponents base>,
                        [IFoo], IResult, '', None, u''), 
    HandlerRegistration(<BaseGlobalComponents base>,
-                       [IFoo], u'', 'stubFactory', u'')]
+                       [IFoo], u'', 'stubFactory', u''),
+   HandlerRegistration(<BaseGlobalComponents base>,
+                       [Interface], u'', append, u'')]
 
 And all of the required interfaces are considered, of course:
 
@@ -91,7 +92,9 @@
   >>> regs.sort()
   >>> regs
   [AdapterRegistration(<BaseGlobalComponents base>, 
-                       [IFoo, IBar], ISpecialResult, '', None, u'')]
+                       [IFoo, IBar], ISpecialResult, '', None, u''),
+   HandlerRegistration(<BaseGlobalComponents base>,
+                       [Interface], u'', append, u'')]
 
 
 `getProvidedAdapters(iface, withViews=False)`



More information about the Checkins mailing list