'Run a custom Import Script
@ToDo: Report Errors during Script run to console better'

@staticmethod
def import_script(filename):

    from gluon.cfs import getcfs
    from gluon.compileapp import build_environment
    from gluon.restricted import restricted
    environment = build_environment(current.request, current.response, current.session)
    environment['current'] = current
    environment['auth'] = current.auth
    environment['db'] = current.db
    environment['gis'] = current.gis
    environment['s3db'] = current.s3db
    environment['settings'] = current.deployment_settings
    code = getcfs(filename, filename, None)
    restricted(code, environment, layer=filename)
