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
database_utils_class.py 文件源码
python
阅读 25
收藏 0
点赞 0
评论 0
评论列表
文章目录