def update_action_value(file_path, doc):
'''
Function the write the user provided action value in the XML file
'''
sModuleInfo = inspect.stack()[0][3] + " : " + inspect.getmoduleinfo(__file__).name
CommonUtil.ExecLog(sModuleInfo, "Function: update_action_value", 1)
try:
sModuleInfo = inspect.stack()[0][3] + " : " + inspect.getmoduleinfo(__file__).name
#Function to write the action value in the XML file
doc.write(file_path)
CommonUtil.ExecLog(sModuleInfo, ">>> Writing the attribute value in the XML File...", 1)
return "Passed"
except Exception:
errMsg = "Unable to update the action element(s)."
return CommonUtil.Exception_Handler(sys.exc_info(),None,errMsg)
BuiltInFunctions_XML.py 文件源码
python
阅读 23
收藏 0
点赞 0
评论 0
评论列表
文章目录