From: Ted B. <te...@et...> - 2001-09-02 11:15:27
|
On Sunday 02 September 2001 03:49, Ype Kingma wrote: > > First off: I am not familiar with JDOM and XML, so what follows > might be quite non relevant. Not a problem. Actually, I think the issue is more likely a python-related mistake that I'm making. > It seems to me that your problem might be caused by > > f = InstallSetTreeModel( self ) > > returning self instead of a newly created InstallSetTreeModel. > Supposing this is a constructor call, why is self passed? > In case you want a new child node (f is appended to self.children > lateron), you might introduce a separate method for creating > a new child node. > The argument is used to create a reference-to-parent in the new object, like so: def __init__( self, parent=None ): self.parent = parent which is used to determine the topmost object in the tree. ted |