original_docstring: Finds all the config:type=list <sles:*> elements and moves them all
  		into a single hierarchy.
  
  		
docstring: Finds all the config:type=list  elements and moves them all
  into a single hierarchy.
docstring_tokens: Finds all the config : type = list elements and moves them all into a single hierarchy .
code: def traverse_sles(self, node):
  		"""Finds all the config:type=list <sles:*> elements and moves them all
  		into a single hierarchy.
  
  		"""
  
  		if not self.getAttr(node, 'config:type') == 'list':
  			return True
  
  		if node.nodeName not in self.fragments:
  
  			# Find all the config:type=list tags and
  			# remember the first one for each tag name
  
  			self.fragments[node.nodeName] = node
  		else:
  
  			# For subsequent tags move all the children to
  			# the master (above). Also check if any other
  			# siblings are at the same level, if not mark
  			# the parent node for later deletion (can't
  			# safely remove the parent right now)
  
  			master = self.fragments[node.nodeName]
  			for child in node.childNodes:
  				master.appendChild(child.cloneNode(deep=True))
  
  
  			parent = node.parentNode
  			remove = True
  
  			node.parentNode.removeChild(node)
  			for child in parent.childNodes:
  				if child.nodeType == child.ELEMENT_NODE:
  					remove = False
  					break
  
  			if remove:
  				parent.setAttribute('stack:gc', 'true')
  
  
  		return False
code_tokens: def traverse_sles ( self , node ) : if not self . getAttr ( node , 'config:type' ) == 'list' : return True if node . nodeName not in self . fragments : self . fragments [ node . nodeName ] = node else : master = self . fragments [ node . nodeName ] for child in node . childNodes : master . appendChild ( child . cloneNode ( deep = True ) ) parent = node . parentNode remove = True node . parentNode . removeChild ( node ) for child in parent . childNodes : if child . nodeType == child . ELEMENT_NODE : remove = False break if remove : parent . setAttribute ( 'stack:gc' , 'true' ) return False
short_docstring: Finds all the config:type=list <sles:*> elements and moves them all
  into a single hierarchy.
short_docstring_tokens: Finds all the config : type = list <sles : * > elements and moves them all into a single hierarchy .
comment: """Finds all the config:type=list <sles:*> elements and moves them all
  		into a single hierarchy.
  
  		"""$SEP$# Find all the config:type=list tags and$SEP$# remember the first one for each tag name$SEP$# For subsequent tags move all the children to$SEP$# the master (above). Also check if any other$SEP$# siblings are at the same level, if not mark$SEP$# the parent node for later deletion (can't$SEP$# safely remove the parent right now)