17 Aug
2000
17 Aug
'00
5:12 p.m.
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