Mercurial > libervia-backend
diff plugins/plugin_xep_0096.py @ 7:c14a3a7018a5
added dynamic exportation of Dbus bridge method (usefull for plugins)
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 24 Oct 2009 01:05:17 +0200 |
parents | a06a151fc31f |
children | 4b05308d45f9 |
line wrap: on
line diff
--- a/plugins/plugin_xep_0096.py Fri Oct 23 17:04:22 2009 +0200 +++ b/plugins/plugin_xep_0096.py Sat Oct 24 01:05:17 2009 +0200 @@ -42,8 +42,7 @@ self.host = host self._waiting_for_approval = {} host.add_IQ_cb("http://jabber.org/protocol/si", self.xep_96) - host.bridge.register("sendFile", self.sendFile) - + host.bridge.addMethod("sendFile", ".communication", in_sign='ss', out_sign='s', method=self.sendFile) def xep_96(self, IQ): info ("XEP-0096 management")