[Zope3-Users] How come no IView?

Stephan Richter srichter at cosmos.phy.tufts.edu
Tue Jan 3 08:25:01 EST 2006


On Sunday 01 January 2006 12:20, Wade Leftwich wrote:
> Since Zope 3 is all about being self-documenting and discoverable, it
> seems odd that something as central as a View has the "implicit"
> attributes 'context' and 'request'. Is there an architectural reason
> that we don't say that a View class implements an IView interface that
> gives the names of the expected attributes?

Browser views usually implement BrowserView one way or another (if not by 
direct inheritance, then by indirect inheritance via the browser:page 
directive). BrowserView on the other hand implements IBrowserView, which then 
inherits IView, which means this is a bug. :-) IView is deprecated, so 
IBrowserView should really directly declare context and request to be there.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training


More information about the Zope3-users mailing list