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
_______________________________________________
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users

Reply via email to