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


_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to