Revision 04bcb621

b/lib/client/gnt_job.py
60 60
    raise errors.ProgrammerError("Unknown job status code '%s'" % value)
61 61

  
62 62

  
63
def _FormatSummary(value):
64
  """Formats a job's summary. Takes possible non-ascii encoding into account.
65

  
66
  """
67
  return ','.encode('utf-8').join(item.encode('utf-8') for item in value)
68

  
69

  
63 70
_JOB_LIST_FORMAT = {
64 71
  "status": (_FormatStatus, False),
65
  "summary": (lambda value: ",".join(str(item) for item in value), False),
72
  "summary": (_FormatSummary, False),
66 73
  }
67 74
_JOB_LIST_FORMAT.update(dict.fromkeys(["opstart", "opexec", "opend"],
68 75
                                      (lambda value: map(FormatTimestamp,

Also available in: Unified diff