dialect_info.py 文件源码

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

项目:zzzeeksphinx 作者: zzzeek 项目源码 文件源码
def _dialect_node(self):
        self._dialects[self.dialect_name] = self

        content = self._parse_content()
        self.database_name = content['name']

        self.bullets = nodes.bullet_list()
        text = "The following dialect/DBAPI options are available.  "\
               "Please refer to individual DBAPI sections "\
               "for connect information."
        sec = nodes.section(
            '',
            nodes.paragraph(
                '', '',
                nodes.Text(
                    "Support for the %s database." % content['name'],
                    "Support for the %s database." % content['name']
                ),
            ),
            nodes.title("DBAPI Support", "DBAPI Support"),
            nodes.paragraph(
                '', '',
                nodes.Text(text, text),
                self.bullets
            ),
            ids=["dialect-%s" % self.dialect_name]
        )

        return [sec]
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号