'Represent a Commit
@ToDo: Migrate to S3Represent'

@staticmethod
def commit_represent(id, row=None):

    if row:
        table = current.db.req_commit
    elif (not id):
        return current.messages['NONE']
    else:
        db = current.db
        table = db.req_commit
        row = db((table.id == id)).select(table.type, table.date, table.organisation_id, table.site_id, limitby=(0, 1)).first()
    if (row.type == 1):
        return ('%s    -    %s' % (table.site_id.represent(row.site_id), table.date.represent(row.date)))
    else:
        return ('%s    -    %s' % (table.organisation_id.represent(row.organisation_id), table.date.represent(row.date)))
