[Zope-dev] make zope.component.registry.Components inherit from dict?

Martin Aspeli optilude+lists at gmail.com
Tue Nov 24 00:10:54 EST 2009


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



More information about the Zope-Dev mailing list