#NEWLINE# def get_lines( self ) : #NEWLINE# #INDENT# ' Returns a list of lists or strings, representing the code body.\n            Each list is a block, each string is a statement.\n        ' #NEWLINE# code = [ ] #NEWLINE# for ( counter , item ) in enumerate ( self . model . _default_manager . all ( ) ) : #NEWLINE# #INDENT# instance = InstanceCode ( instance = item , id = ( counter + 1 ) , context = self . context , stdout = self . stdout , stderr = self . stderr , options = self . options ) #NEWLINE# self . instances . append ( instance ) #NEWLINE# if instance . waiting_list : #NEWLINE# #INDENT# code += instance . lines #NEWLINE# #UNINDENT# #UNINDENT# for instance in self . instances : #NEWLINE# #INDENT# if instance . waiting_list : #NEWLINE# #INDENT# code += instance . lines #NEWLINE# #UNINDENT# #UNINDENT# return code