revision_documents.py 文件源码

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

项目:deckhand 作者: att-comdev 项目源码 文件源码
def _retrieve_layering_policy(self):
        try:
            # NOTE(fmontei): Layering policies exist system-wide, across all
            # revisions, so no need to filter by revision.
            layering_policy_filters = {
                'deleted': False,
                'schema': types.LAYERING_POLICY_SCHEMA
            }
            layering_policy = db_api.document_get(**layering_policy_filters)
        except errors.DocumentNotFound as e:
            error_msg = (
                'No layering policy found in the system so could not render '
                'the documents.')
            LOG.error(error_msg)
            LOG.exception(six.text_type(e))
            raise falcon.HTTPConflict(description=error_msg)
        else:
            return layering_policy
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号