[Zope] id of an externally created object

Florent Guillaume fg@nuxeo.com
Wed, 30 Jan 2002 14:54:59 +0000 (UTC)


Actually I believe that when you do:
	newob2=self.Control_Panel.Products.SQS_Library.Book(id2)
the Book class is supposed to make its id available as id2, using an
id attribute or a getId method.

Also you can see the id in the ZMI because the id is known in two
places: the parent (ObjectManager) stores the ids of all its subobjects,
and the subobjects themselves know their id. Your problem is that the
second condition is not met.

Florent


Stephan Zaulig  <stephan_zaulig@web.de> wrote:
> Yes, I used _setObject. The object is created correctly, but without using
> the _setId method I can't get the id, although in the management interface
> of Zope the id appears.
-- 
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 10  http://nuxeo.com  mailto:fg@nuxeo.com