signals.py 文件源码

python
阅读 30 收藏 0 点赞 0 评论 0

项目:flask_example 作者: flyhigher139 项目源码 文件源码
def set_status(msg, status):
    message = {
        'msg': msg,
        'to_do': 'I do not know what to do, the signal will tell me'
    }

    status_changed.send(current_app._get_current_object(), status="go_to_work")

    status = get_status_callback()

    return message, status
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号