'Represent a (key, value) as hypertext link.
@param k: the key (site_id)
@param v: the representation of the key
@param row: the row with this key'

def link(self, k, v, row=None):

    if row:
        type = row.get('asset_asset.type', None)
        if (type == 1):
            return A(v, _href=URL(c='vehicle', f='vehicle', args=[k], extension=''))
    k = s3_unicode(k)
    return A(v, _href=self.linkto.replace('[id]', k).replace('%5Bid%5D', k))
