def fetch_script(script_id):
"""Used by mist.api.views.fetch"""
try:
script = Script.objects.get(id=script_id, deleted=None)
except Script.DoesNotExist:
raise NotFoundError('Script does not exist')
return script.ctl.get_file()
评论列表
文章目录