[Zope3-checkins]
SVN: Zope3/branches/jim-adapter/src/zope/app/apidoc/presentation.txt
Updated test to reflect the fact that we are initializing with a
Jim Fulton
jim at zope.com
Wed Jan 25 06:54:09 EST 2006
Log message for revision 41431:
Updated test to reflect the fact that we are initializing with a
simpler setup that doesn't register extra views that we dn't care
about.
Changed:
U Zope3/branches/jim-adapter/src/zope/app/apidoc/presentation.txt
-=-
Modified: Zope3/branches/jim-adapter/src/zope/app/apidoc/presentation.txt
===================================================================
--- Zope3/branches/jim-adapter/src/zope/app/apidoc/presentation.txt 2006-01-25 10:34:47 UTC (rev 41430)
+++ Zope3/branches/jim-adapter/src/zope/app/apidoc/presentation.txt 2006-01-25 11:54:09 UTC (rev 41431)
@@ -270,21 +270,13 @@
AdapterRegistration(('IFoo', 'IHTTPRequest'), 'Interface',
'foo', None, ''),
AdapterRegistration(('Interface', 'IHTTPRequest'), 'Interface',
- 'bar', None, ''),
- AdapterRegistration((None, 'IDefaultBrowserLayer'), 'IAbsoluteURL',
- '', <class '...browser.absoluteurl.AbsoluteURL'>, ''),
- AdapterRegistration((None, 'IDefaultBrowserLayer'), 'Interface',
- 'absolute_url', <class ...absoluteurl.AbsoluteURL'>, '')]
+ 'bar', None, '')]
>>> regs = list(presentation.getViews(Interface, IHTTPRequest))
>>> regs.sort()
>>> regs #doctest:+ELLIPSIS
[AdapterRegistration(('Interface', 'IHTTPRequest'), 'Interface',
- 'bar', None, ''),
- AdapterRegistration((None, 'IDefaultBrowserLayer'), 'IAbsoluteURL',
- '', <class '...browser.absoluteurl.AbsoluteURL'>, ''),
- AdapterRegistration((None, 'IDefaultBrowserLayer'), 'Interface',
- 'absolute_url', <class ...absoluteurl.AbsoluteURL'>, '')]
+ 'bar', None, '')]
`filterViewRegistrations(regs, iface, level=SPECIFC_INTERFACE_LEVEL)`
More information about the Zope3-Checkins
mailing list