atlassian python API:将引导程序添加到 html 内容以创建页面

问题描述

我正在使用 atlassia-python-api 的 Confluence 模块来创建一个页面 我想将 html 作为内容传递。是否可以为该 html 添加图像和引导 CDN?

这是我的代码

title = "test page"
content = """<table id="mytable">
              <th>header1</th>
              <th>header2</th>
           <tr>
              <td>R1C1</td>
              <td>R2C2</td>
           </tr>
           <tr>
              <td>R2C1</td> 
              <td>R2C2</td>
           </tr>
        </table>"""

Bootstrap_html = """<script>
                    $(document).ready(function(){
                    $('#myTable').dataTable();});
                 </script>
                 <script 
src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
                 <script type="text/javascript" 
src="http://cdn.datatables.net/1.10.2/js/jquery.dataTables.min.js"></script>
                  <script type="text/javascript" src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>"""

content = bootstrap_html+content
confluence.create_page(SPACE,title,content,type=blogpost)

如果我不添加引导程序文件,它工作正常,但在添加

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...