'File representation'

@staticmethod
def gis_layer_geojson_file_represent(file):

    if file:
        try:
            filename = current.db.gis_layer_geojson.file.retrieve(file)[0]
        except IOError:
            return current.T('File    not    found')
        else:
            return A(filename, _href=URL(c='static', f='cache', args=['geojson', file]))
    else:
        return current.messages['NONE']
