Index: dogtail/tree.py
===================================================================
RCS file: /cvs/gnome/dogtail/dogtail/tree.py,v
retrieving revision 1.23
diff -r1.23 tree.py
196a197,200
> 	'selectedChildren' (read-only list of Node instances):
> 	For instances wrapping a Selection, the selected children of this node,
> 	wrapping getNSelectedChildren and getSelectedChild
> 
285c289
< 	contained = ('__accessible', '__action', '__component', '__text', '__editableText')
---
> 	contained = ('__accessible', '__action', '__component', '__text', '__editableText', '__selection')
370a375,387
> 		# Swallow the Selection object, if it exists
> 		selection = self.__accessible.getSelection()
> 		if selection is not None:
> 			self.__selection = selection
> 			self.__selection = selection
> 			self.getNSelectedChildren = self.__selection.getNSelectedChildren 
> 			self.getSelectedChild = self.__selection.getSelectedChild
> 			self.selectChild = self.__selection.selectChild
> 			self.deselectSelectedChild = self.__selection.deselectSelectedChild
> 			self.isChildSelected = self.__selection.isChildSelected
> 			self.selectAll = self.__selection.selectAll
> 			self.clearSelection = self.__selection.clearSelection 
> 
429a447,453
> 		elif attr == "selectedChildren":
> 			if self.__hideChildren: raise AttributeError, attr
> 			if not self.__selection: raise AttributeError, attr
> 			selectedChildren = []
> 			for i in xrange (self.__selection.getNSelectedChildren ()):
> 				selectedChildren.append (Node (self.__selection.getSelectedChild (i)))
> 			return selectedChildren
897a922,932
> 
> 	def select(self):
> 		"""
> 		Select this node in the current selection it is in.
> 
> 		This implemented using addSelection and removeSelection interfaces on the
> 		parent, if it implements selection interface.
> 		"""
> 		assert self.parent
> 		assert self.parent._Node__selection
> 		self.parent.selectChild(self._Node__accessible.indexInParent)
