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

sean.upton@uniontrib.com sean.upton@uniontrib.com
Mon, 05 May 2003 15:27:39 -0700


So descriptors would be incompatible with wrapping a single instance at
runtime, which is why I like the idea of using properties.

Shane says relationships in this sense "exist in the data model."  I'm
trying to understand whether this is a statement that "all
relationship-management should exist in the data model" or rather that, in
the sense of specific applications, they should exist in the data model of
the class defining a particular type of object?

For general purpose relationship management, one would hope that new type of
relationships can be bolted onto existing legacy, and dumb objects.  At the
same time, one would hope not to have to call a service or function external
to the object just to get its relationships.  Wrapping an object would
accomplish both, with only a bit more work, I think (and classes using
descriptors for these relationships would work too; I'm just suggesting that
descriptors and properties via wrapping may not be mutually exclusive).

Sean

-----Original Message-----
From: Tres Seaver [mailto:tseaver@zope.com]
Sent: Monday, May 05, 2003 2:50 PM
To: sean.upton@uniontrib.com
Cc: shane@zope.com; klm@zope.com; zope3-dev@zope.org
Subject: RE: [Zope3-dev] zwiki: performance of findChildren()


On Mon, 2003-05-05 at 17:41, sean.upton@uniontrib.com wrote:
> Forgive my ignorance, but can descriptors be added to instances and not
just
> classes? 

No:

 - http://www.python.org/peps/pep-0252.html

Tres.
-- 
===============================================================
Tres Seaver                                tseaver@zope.com
Zope Corporation      "Zope Dealers"       http://www.zope.com