database_utils_class.py 文件源码

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

项目:warriorframework 作者: warriorframework 项目源码 文件源码
def get_globalblock_as_xmlobj(self, db_details):
        """ To get the global block from the database as xml object """

        globalobj = False
        global_collection = db_details.get('global_collection')
        global_document = db_details.get('global_document')

        if global_collection is not None and global_document is not None:
            globaldoc = self.get_doc_from_db(global_collection,
                                             global_document)
        else:
            globaldoc = False

        if globaldoc is not False:
            global_root = ET.Element('global')
            self.convert_tddict_to_xmlobj(global_root, globaldoc['global'])
            globalobj = global_root

        return globalobj
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号