Esempio n. 1
0
def delete_resource():
    try:
        resource_id = request.form.get('resource_id')
        msg = resource_server.delete_file(resource_id, current_user)
        return msg
    except:
        return u'删除失败'
Esempio n. 2
0
def delete_resource():
    try:
        resource_id = request.form.get('resource_id')
        msg = resource_server.delete_file(resource_id, current_user)
        return msg
    except:
        current_app.logger.error(traceback.format_exc())
        return u'删除失败'