'Generate a summary flash message for a completed import job
@param totals: the job totals as tuple
(total imported, total errors, total ignored)
@param timestmp: the timestamp of the completion'

def _display_completed_job(self, totals, timestmp=None):

    messages = self.messages
    msg = ('%s    -    %s    -    %s' % (messages.commit_total_records_imported, messages.commit_total_errors, messages.commit_total_records_ignored))
    msg = (msg % totals)
    if (timestmp != None):
        current.session.flash = (messages.job_completed % (self.date_represent(timestmp), msg))
    elif (totals[1] is not 0):
        current.session.error = msg
    elif (totals[2] is not 0):
        current.session.warning = msg
    else:
        current.session.flash = msg
