Re: make zope.component.registry.Components inherit from dict?

Martin Aspeli <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Message-ID <[email protected]>
Matthew Wilkes wrote:

> Right, but I think mixing the two is just going to be confusing.  Your  
> alternative spelling may well be useful, but only if it works within  
> the confines of the ZCA itself, otherwise you're just hijacking the  
> component root for your own (nefarious) purposes.

The site manager != the component site. In Plone, getSite() returns the 
Plone site object; getSiteManager() returns an IComponents instance or 
whatever that interface is. So making that implement the dict API is OK.

Martin

-- 
Author of `Professional Plone Development`, a book for developers who
want to work with Plone. See http://martinaspeli.net/plone-book

_______________________________________________
Zope-Dev maillist  -  [email protected]
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.