#NEWLINE# def to_dict( self ) : #NEWLINE# #INDENT# '\n        Convert a BatchList object into format required for Layer1.\n        ' #NEWLINE# d = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for batch in self : #NEWLINE# #INDENT# d [ batch . table . name ] = batch . to_dict ( ) #NEWLINE# #UNINDENT# return d