'Represent a row
@param row: the Row'

def represent_row(self, row):

    pentity = row.pr_pentity
    instance_type = pentity.instance_type
    show_label = self.show_label
    if show_label:
        label = (pentity.pe_label if pentity.pe_label else self.default_label)
    else:
        label = ''
    item = object.__getattribute__(row, instance_type)
    if (instance_type == 'pr_person'):
        pe_str = ('%s    %s' % (s3_fullname(item), label))
    elif (instance_type == 'hrm_training_event'):
        pe_str = self.training_event_represent.represent_row(item)
    elif ('name' in item):
        pe_str = s3_unicode(item['name'])
    else:
        pe_str = ('[%s]' % label)
    if self.show_type:
        etable = current.s3db.pr_pentity
        instance_type_nice = etable.instance_type.represent(instance_type)
        pe_str = ('%s    (%s)' % (pe_str, s3_unicode(instance_type_nice)))
    return pe_str
