Mercurial > libervia-backend
diff src/plugins/plugin_exp_parrot.py @ 697:0c84fb112d70
core: sendMessage triggers now use a treatments deferred;
- treaments deferred can be used by plugins to change XML elements before sending them, in a similar way as for newMessage
- sendMessageXml trigger became useless, so it as been removed in favor of the new deferred
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 13 Nov 2013 13:57:36 +0100 |
parents | 8004c7d4aba7 |
children | bfabeedbf32e |
line wrap: on
line diff
--- a/src/plugins/plugin_exp_parrot.py Tue Nov 12 16:56:34 2013 +0100 +++ b/src/plugins/plugin_exp_parrot.py Wed Nov 13 13:57:36 2013 +0100 @@ -48,7 +48,7 @@ host.trigger.add("MessageReceived", self.MessageReceivedTrigger, priority=100) #host.trigger.add("sendMessage", self.sendMessageTrigger, priority=100) - #def sendMessageTrigger(self, mess_data, profile): + #def sendMessageTrigger(self, mess_data, treatments, profile): # """ Deactivate other triggers if recipient is in parrot links """ # client = self.host.getClient(profile) # try: