[Zope] Choose where to create a ZClass instance with EM
R. David Murray
bitz@bitdance.com
Thu, 17 Aug 2000 13:12:50 -0400 (EDT)
On Thu, 17 Aug 2000, Andy McKay wrote:
> Get a handle to the object where you wish to create the object then create
> the object.
>
> For example: newobj = getattr(self, 'folderA')
>
> will give you folderA in self. The new object will be created in folderA.
Isn't it actually that he wants to do the _setObject call on object where
he wants the thing to go?:
newob=self.Control.Panel.Products.MyProduct.MyClass(id)
newob.id=id
newob.propertysheets.Properties.manage_changeProperties(data)
getattr(self,'folderA')._setObject(id,newob)
newob.reindex_object()
--RDM