[Zope3-checkins]
SVN: Zope3/branches/jim-adapter/src/zope/app/apidoc/ifacemodule/browser.txt
Now "default" adapters are registered for Interface. This means that
Jim Fulton
jim at zope.com
Wed Jan 25 07:15:35 EST 2006
Log message for revision 41432:
Now "default" adapters are registered for Interface. This means that
all adapters for interface show up in the list of "generic" adapters.
Changed:
U Zope3/branches/jim-adapter/src/zope/app/apidoc/ifacemodule/browser.txt
-=-
Modified: Zope3/branches/jim-adapter/src/zope/app/apidoc/ifacemodule/browser.txt
===================================================================
--- Zope3/branches/jim-adapter/src/zope/app/apidoc/ifacemodule/browser.txt 2006-01-25 11:54:09 UTC (rev 41431)
+++ Zope3/branches/jim-adapter/src/zope/app/apidoc/ifacemodule/browser.txt 2006-01-25 12:15:34 UTC (rev 41432)
@@ -284,7 +284,6 @@
>>> pprint(details.getSpecificRequiredAdapters())
[]
-
`getExtendedRequiredAdapters()`
-------------------------------
@@ -293,14 +292,104 @@
>>> pprint(details.getExtendedRequiredAdapters())
[]
+Note that this includes all interfaces registered for
+interface.Interface.
+
`getGenericRequiredAdapters()`
------------------------------
Get adapters where this interface is required.
- >>> pprint(details.getGenericRequiredAdapters())
- []
+ >>> pprint(sorted(details.getGenericRequiredAdapters()))
+ [{'doc': '',
+ 'factory': 'None.append',
+ 'factory_url': None,
+ 'name': u'<subscription>',
+ 'provided': None,
+ 'required': [{'module': 'zope.interface',
+ 'name': 'Interface'}],
+ 'zcml': None},
+ {'doc': '',
+ 'factory': 'zope.app.location.traversing.LocationPhysicallyLocatable',
+ 'factory_url': 'zope/app/location/traversing/LocationPhysicallyLocatable',
+ 'name': '',
+ 'provided': {'module': 'zope.app.traversing.interfaces',
+ 'name': 'IPhysicallyLocatable'},
+ 'required': [{'module': 'zope.interface',
+ 'name': 'Interface'}],
+ 'zcml': None},
+ {'doc': '',
+ 'factory': 'zope.app.traversing.adapters.DefaultTraversable',
+ 'factory_url': 'zope/app/traversing/adapters/DefaultTraversable',
+ 'name': '',
+ 'provided': {'module': 'zope.app.traversing.interfaces',
+ 'name': 'ITraversable'},
+ 'required': [{'module': 'zope.interface',
+ 'name': 'Interface'}],
+ 'zcml': None},
+ {'doc': '',
+ 'factory': 'zope.app.traversing.adapters.Traverser',
+ 'factory_url': 'zope/app/traversing/adapters/Traverser',
+ 'name': '',
+ 'provided': {'module': 'zope.app.traversing.interfaces',
+ 'name': 'ITraverser'},
+ 'required': [{'module': 'zope.interface',
+ 'name': 'Interface'}],
+ 'zcml': None},
+ {'doc': '',
+ 'factory': 'zope.app.traversing.namespace.etc',
+ 'factory_url': 'zope/app/traversing/namespace/etc',
+ 'name': 'etc',
+ 'provided': {'module': 'zope.app.traversing.interfaces',
+ 'name': 'ITraversable'},
+ 'required': [{'module': 'zope.interface',
+ 'name': 'Interface'}],
+ 'zcml': None},
+ {'doc': '',
+ 'factory': 'zope.app.traversing.namespace.etc',
+ 'factory_url': 'zope/app/traversing/namespace/etc',
+ 'name': 'etc',
+ 'provided': {'module': 'zope.app.traversing.interfaces',
+ 'name': 'ITraversable'},
+ 'required': [{'module': 'zope.interface',
+ 'name': 'Interface'},
+ {'module': 'zope.interface',
+ 'name': 'Interface'}],
+ 'zcml': None},
+ {'doc': '',
+ 'factory': 'zope.app.traversing.namespace.etc',
+ 'factory_url': 'zope/app/traversing/namespace/etc',
+ 'name': 'etc',
+ 'provided': {'module': 'zope.app.traversing.interfaces',
+ 'name': 'ITraversable'},
+ 'required': [{'module': 'zope.interface',
+ 'name': 'Interface'},
+ {'module': 'zope.interface',
+ 'name': 'Interface'}],
+ 'zcml': None},
+ {'doc': '',
+ 'factory': 'zope.app.traversing.namespace.etc',
+ 'factory_url': 'zope/app/traversing/namespace/etc',
+ 'name': 'etc',
+ 'provided': {'module': 'zope.app.traversing.interfaces',
+ 'name': 'ITraversable'},
+ 'required': [{'module': 'zope.interface',
+ 'name': 'Interface'},
+ {'module': 'zope.interface',
+ 'name': 'Interface'}],
+ 'zcml': None},
+ {'doc': '',
+ 'factory': 'zope.app.traversing.namespace.etc',
+ 'factory_url': 'zope/app/traversing/namespace/etc',
+ 'name': 'etc',
+ 'provided': {'module': 'zope.app.traversing.interfaces',
+ 'name': 'ITraversable'},
+ 'required': [{'module': 'zope.interface',
+ 'name': 'Interface'},
+ {'module': 'zope.interface',
+ 'name': 'Interface'}],
+ 'zcml': None}]
`getProvidedAdapters()`
@@ -349,4 +438,4 @@
'name': 'The Foo',
'path': '__builtin__.Foo',
'url': None,
- 'url_name': 'VGhlIEZvbw=='}]
\ No newline at end of file
+ 'url_name': 'VGhlIEZvbw=='}]
More information about the Zope3-Checkins
mailing list