#NEWLINE# def writeSessionInformation( self , path , what = None ) : #NEWLINE# #INDENT# f = file ( path , 'w' ) #NEWLINE# f . write ( ( '%s\n' % '\t' . join ( [ 'dialogId' , 'msgNumber' , 'origin' , 'type' ] ) ) ) #NEWLINE# if ( what is None ) : #NEWLINE# #INDENT# for s in self . session : #NEWLINE# #INDENT# f . write ( ( '%s\n' % str ( s ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# for ( writeIt , s ) in zip ( writeIt , self . session ) : #NEWLINE# #INDENT# if writeIt : #NEWLINE# #INDENT# f . write ( ( '%s\n' % str ( s ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# f . close ( )