Re: [Zope] id of an externally created object
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. Stephan ________________________________________________________________ Keine verlorenen Lotto-Quittungen, keine vergessenen Gewinne mehr! Beim WEB.DE Lottoservice: http://tippen2.web.de/?x=13
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
participants (2)
-
Florent Guillaume -
Stephan Zaulig