subscription.py 文件源码

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

项目:rucio 作者: rucio01 项目源码 文件源码
def GET(self, account, name=None):
        """
        Return a summary of the states of all rules of a given subscription id.

        HTTP Success:
            200 OK

        HTTP Error:
            404 Not Found
            500 Internal Error

        """
        header('Content-Type', 'application/x-json-stream')
        try:
            for row in list_subscription_rule_states(account=account):
                yield dumps(row, cls=APIEncoder) + '\n'
        except RucioException as error:
            raise generate_http_error(500, error.__class__.__name__, error.args[0])
        except Exception as error:
            raise InternalError(error)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号