[Zope] id of an externally created object
Florent Guillaume
fg@nuxeo.com
Wed, 30 Jan 2002 11:49:53 +0000 (UTC)
Did you use _setObject ?
Florent
Stephan Zaulig <stephan_zaulig@web.de> wrote:
> Hi List,
>
> if i create a new object in an external method with following code,
> the object is created without any exception and i can see it in the
> management interface of Zope with id and title.
>
> newob2=self.Control_Panel.Products.SQS_Library.Book(id2)
> newob2.propertysheets.InstanceProperties.manage_changeProperties(REQUEST)
>
> But if i iterate over it like this
> <dtml-in objectValues>
> <dtml-var id>
> </dtml-in>
> i dont't get the id of the object.
> It's no problem, cause if i add this line of code in my external method
> everything seems to be alright.
>
> newob2._setId(id2)
>
> My question: Is this behaviour ok, and if it is, could anybody explain to me
> why it is like this?
--
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 10 http://nuxeo.com mailto:fg@nuxeo.com