Mercurial > libervia-backend
comparison src/plugins/plugin_xep_0077.py @ 372:f964dcec1611
core: plugins refactored according to bridge + updatedValue now use profile
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 06 Jul 2011 01:06:18 +0200 |
parents | 7c79d4a8c9e6 |
children | cf005701624b |
comparison
equal
deleted
inserted
replaced
371:3ea41a199b36 | 372:f964dcec1611 |
---|---|
45 | 45 |
46 def __init__(self, host): | 46 def __init__(self, host): |
47 info(_("Plugin XEP_0077 initialization")) | 47 info(_("Plugin XEP_0077 initialization")) |
48 self.host = host | 48 self.host = host |
49 self.triggers = {} #used by other protocol (e.g. XEP-0100) to finish registration. key = target_jid | 49 self.triggers = {} #used by other protocol (e.g. XEP-0100) to finish registration. key = target_jid |
50 host.bridge.addMethod("in_band_register", ".communication", in_sign='ss', out_sign='s', method=self.in_band_register) | 50 host.bridge.addMethod("in_band_register", ".plugin", in_sign='ss', out_sign='s', method=self.in_band_register) |
51 host.bridge.addMethod("in_band_submit", ".request", in_sign='sa(ss)', out_sign='s', method=self.in_band_submit) | 51 host.bridge.addMethod("in_band_submit", ".plugin", in_sign='sa(ss)', out_sign='s', method=self.in_band_submit) |
52 | 52 |
53 def addTrigger(self, target, cb, profile): | 53 def addTrigger(self, target, cb, profile): |
54 """Add a callback which is called when registration to target is successful""" | 54 """Add a callback which is called when registration to target is successful""" |
55 self.triggers[target] = (cb, profile) | 55 self.triggers[target] = (cb, profile) |
56 | 56 |