#NEWLINE# def check_mandatory_create_account( iterables , type ) : #NEWLINE# #INDENT# for iterable in iterables : #NEWLINE# #INDENT# if ( type == 'builders' ) : #NEWLINE# #INDENT# if ( 'account' in iterable ) : #NEWLINE# #INDENT# if ( ( not ( 'type' in iterable ) ) and ( not ( 'type' in iterable [ 'account' ] ) ) ) : #NEWLINE# #INDENT# printer . out ( 'no attribute type in builder' , printer . ERROR ) #NEWLINE# return #NEWLINE# #UNINDENT# if ( 'file' in iterable [ 'account' ] ) : #NEWLINE# #INDENT# file = get_file ( iterable [ 'account' ] [ 'file' ] ) #NEWLINE# if ( file is None ) : #NEWLINE# #INDENT# return 2 #NEWLINE# #UNINDENT# data = generics_utils . check_json_syntax ( file ) #NEWLINE# if ( data is None ) : #NEWLINE# #INDENT# return 2 #NEWLINE# #UNINDENT# if ( 'accounts' in data ) : #NEWLINE# #INDENT# return check_mandatory_create_account ( data [ 'accounts' ] , 'accounts' ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# if ( type == 'accounts' ) : #NEWLINE# #INDENT# if ( not ( 'type' in iterable ) ) : #NEWLINE# #INDENT# printer . out ( 'no attribute type in accounts' , printer . ERROR ) #NEWLINE# return #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return iterables