[Zope-dev] IAbsoluteURL for browser view should contain @@?

Jacob Holm jh at improva.dk
Thu Apr 1 06:31:10 EDT 2010


Marius Gedminas wrote:
> 
> Are you sure that most views provide IBrowserView these days?  URL
> traversal looks them up as multi-adapters providing just Interface.
> 

True and you will almost never see a view class using
"implements(IBrowserView)" directly.  Still, if you use the browser:view
or browser:page zcml directives from zope.browserpage (used to live in
zope.app.publisher.browser) to register your views, then the magic class
that they create for you and that is *actually* registered is a
descendant of zope.publisher.browser.BrowserView which *does* implement
IBrowserView.

In short, all views registered using the classic zcml directives *do*
provide IBrowserView.  I don't (yet) know enough about Grok to say if
something similar applies there.

 - Jacob



More information about the Zope-Dev mailing list