publisher.py 文件源码

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

项目:sphinxcontrib-confluencebuilder 作者: tonybaloney 项目源码 文件源码
def removePage(self, page_id):
        if self.use_rest:
            try:
                self.rest_client.delete('content', page_id)
            except ConfluencePermissionError:
                raise ConfluencePermissionError(
                    """Publish user does not have permission to delete """
                    """from the configured space."""
                )
        else:
            try:
                self.xmlrpc.removePage(self.token, page_id)
            except xmlrpclib.Fault as ex:
                if ex.faultString.find('NotPermittedException') != -1:
                    raise ConfluencePermissionError(
                        """Publish user does not have permission to delete """
                        """from the configured space."""
                    )
                raise
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号