本文整理汇总了Python中archipelcore.archipelEntity.TNArchipelEntity.register_handlers方法的典型用法代码示例。如果您正苦于以下问题:Python TNArchipelEntity.register_handlers方法的具体用法?Python TNArchipelEntity.register_handlers怎么用?Python TNArchipelEntity.register_handlers使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类archipelcore.archipelEntity.TNArchipelEntity
的用法示例。
在下文中一共展示了TNArchipelEntity.register_handlers方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: register_handlers
# 需要导入模块: from archipelcore.archipelEntity import TNArchipelEntity [as 别名]
# 或者: from archipelcore.archipelEntity.TNArchipelEntity import register_handlers [as 别名]
def register_handlers(self):
"""
This method will be called by the plugin user when it will be
necessary to register module for listening to stanza.
"""
TNArchipelEntity.register_handlers(self)
self.xmppclient.RegisterHandler('iq', self.process_iq_for_centralagent, ns=ARCHIPEL_NS_CENTRALAGENT)
示例2: register_handlers
# 需要导入模块: from archipelcore.archipelEntity import TNArchipelEntity [as 别名]
# 或者: from archipelcore.archipelEntity.TNArchipelEntity import register_handlers [as 别名]
def register_handlers(self):
"""
This method overrides the defaut register_handler of the super class.
"""
TNArchipelEntity.register_handlers(self)
self.xmppclient.RegisterHandler('iq', self.process_iq, ns=ARCHIPEL_NS_HYPERVISOR_CONTROL)