本文整理汇总了Python中message.Messager.debug方法的典型用法代码示例。如果您正苦于以下问题:Python Messager.debug方法的具体用法?Python Messager.debug怎么用?Python Messager.debug使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类message.Messager
的用法示例。
在下文中一共展示了Messager.debug方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from message import Messager [as 别名]
# 或者: from message.Messager import debug [as 别名]
def __init__(self, projectconf):
self.data = {}
self.val = True
self.projectconf = projectconf
for t in projectconf.get_entity_types():
self.data[t] = []
for t in projectconf.get_event_types():
self.data[t] = []
for t in projectconf.get_relation_types():
self.data[t] = []
for t in projectconf.get_attribute_types():
self.data[t] = []
for t in projectconf.get_equiv_types():
self.data[t] = []
try:
nodes = projectconf.get_rules_type_hierarchy()
if not nodes:
raise KeyError
for node in nodes:
vrule = ValidationRule(node)
self.data[vrule.type].append(vrule)
except KeyError:
self.val = False
Messager.debug("No rules defined")
示例2: __init__
# 需要导入模块: from message import Messager [as 别名]
# 或者: from message.Messager import debug [as 别名]
def __init__(self, directory):
# debugging (note: latter test for windows paths)
if directory[:1] != "/" and not re.search(r'^[a-zA-Z]:\\', directory):
Messager.debug("Project config received relative directory ('%s'), configuration may not be found." % directory, duration=-1)
self.directory = directory