[Zope3-Users] object id / name / name within parent?
fg at nuxeo.com
Mon Jan 10 06:10:14 EST 2005
Petri Savolainen <petri.savolainen at iki.fi> wrote:
> Wow I've got a real newbie question here: How does the identification
> and naming of objects work in Zope3?
> I understand that objects have names, stored in the __name__ attribute
> of an object, and that this 'name' is what containers know contained
> objects by. To what extent is this analogous to a Zope2 id? Or do Z3
> objects have an id, in addition to name?
The name is indeed comparable to Zope 2's id. Except that in Zope 2,
both an object and its container know the id (which makes for redundant
information that can get out of sync etc), whereas in Zope 3 the name is
only stored with the object itself.
Florent Guillaume, Nuxeo (Paris, France) CTO, Director of R&D
+33 1 40 33 71 59 http://nuxeo.com fg at nuxeo.com
More information about the Zope3-users