本文整理汇总了Python中testmanager.core.base.ModelDataBase._validateAndConvertWorker方法的典型用法代码示例。如果您正苦于以下问题:Python ModelDataBase._validateAndConvertWorker方法的具体用法?Python ModelDataBase._validateAndConvertWorker怎么用?Python ModelDataBase._validateAndConvertWorker使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类testmanager.core.base.ModelDataBase
的用法示例。
在下文中一共展示了ModelDataBase._validateAndConvertWorker方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: _validateAndConvertWorker
# 需要导入模块: from testmanager.core.base import ModelDataBase [as 别名]
# 或者: from testmanager.core.base.ModelDataBase import _validateAndConvertWorker [as 别名]
def _validateAndConvertWorker(self, asAllowNullAttributes, oDb, enmValidateFor = ModelDataBase.ksValidateFor_Other):
# Override to do extra ipLom checks.
dErrors = ModelDataBase._validateAndConvertWorker(self, asAllowNullAttributes, oDb, enmValidateFor);
if self.ksParam_ipLom not in dErrors \
and self.ksParam_enmLomKind not in dErrors \
and self.enmLomKind != self.ksLomKind_None \
and self.ipLom is None:
dErrors[self.ksParam_ipLom] = 'Light-out-management IP is mandatory and a LOM is selected.'
return dErrors;