'File representation'

@staticmethod
def report_represent(value):

    if value:
        try:
            filename = current.db.dvr_site_activity.report.retrieve(value)[0]
        except IOError:
            return current.T('File    not    found')
        else:
            return A(filename, _href=URL(c='default', f='download', args=[value]))
    else:
        return current.messages['NONE']
