#NEWLINE# def check_mandatory_generate_scan( builders ) : #NEWLINE# #INDENT# for builder in builders : #NEWLINE# #INDENT# if ( not ( 'installation' in builder ) ) : #NEWLINE# #INDENT# printer . out ( 'no attribute installation in builder' , printer . ERROR ) #NEWLINE# return #NEWLINE# #UNINDENT# if ( not ( 'diskSize' in builder [ 'installation' ] ) ) : #NEWLINE# #INDENT# printer . out ( 'no attribute diskSize in the installation part of builder' , printer . ERROR ) #NEWLINE# return #NEWLINE# #UNINDENT# if ( not ( 'hardwareSettings' in builder ) ) : #NEWLINE# #INDENT# printer . out ( 'no attribute hardwareSettings in builder' , printer . ERROR ) #NEWLINE# return #NEWLINE# #UNINDENT# if ( not ( 'memory' in builder [ 'hardwareSettings' ] ) ) : #NEWLINE# #INDENT# printer . out ( 'no attribute diskSize in the memory part of hardwareSettings' , printer . ERROR ) #NEWLINE# return #NEWLINE# #UNINDENT# #UNINDENT# return builders