'FK representation
@ToDo: Bulk inc Translation'

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

    if row:
        return row.type
    if (not id):
        return current.messages['NONE']
    db = current.db
    table = db.project_beneficiary
    ttable = db.project_beneficiary_type
    query = ((table.id == id) & (table.parameter_id == ttable.id))
    r = db(query).select(table.value, ttable.name, limitby=(0, 1)).first()
    try:
        return ('%s    %s' % (r['project_beneficiary.value'], r['project_beneficiary_type.name']))
    except:
        return current.messages.UNKNOWN_OPT
