[Zope3-dev] zwiki: performance of findChildren()

Shane Hathaway shane@zope.com
Mon, 05 May 2003 14:59:08 -0400


Tres Seaver wrote:
> On Mon, 2003-05-05 at 14:33, Shane Hathaway wrote:
>>individual.children
> 
> 
> This will break for the same reasons that hard-wiring views onto content
> classes do:  it is too hardwired, too majyk, and makes it impossible to
> change the policy without modifying code.  I would wager that almost
> *any* relationship which can't be modeled by containment (UML's
> "aggregation") should be moved outside the responsibility of the content
> class altogether.

Hmm, I haven't stated any implementation details, so nothing is 
hardwired.  It doesn't seem magical at all, either.  Think of it as a 
transparent component lookup.

Shane