#NEWLINE# def hasChildren( self , index ) : #NEWLINE# #INDENT# 'returns True or False depending on to the index and the item on the\n        index\n        ' #NEWLINE# logger . debug ( ( 'VersionTreeModel.hasChildren() is started for index: %s' % index ) ) #NEWLINE# if ( not index . isValid ( ) ) : #NEWLINE# #INDENT# return_value = ( len ( self . root_versions ) > 0 ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if self . flat_view : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# item = self . itemFromIndex ( index ) #NEWLINE# return_value = False #NEWLINE# if item : #NEWLINE# #INDENT# return_value = item . hasChildren ( ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# logger . debug ( ( 'VersionTreeModel.hasChildren() is finished for index: %s' % index ) ) #NEWLINE# return return_value