def TruncateValue(value):
 value = ustr(value)
 if (len(value) > 32):
  return (value[:32] + '...')
 return value

def TruncateValue ( value ) : value = ustr ( value ) if ( len ( value ) > 32 ) : return ( value [ : 32 ] + '...' ) return value
truncates potentially very long string to a fixed maximum length .