diff src/core/xmpp.py @ 1622:5b24d6bf5d15

core, bridge: actionsGet: - added a new mechanism to keep actions until they are answered (or timeout-ed) - keep_id must be explicitly used on actionNew - actionsGet is used to retrive these actions - the mechanism is used in deferXMLUI
author Goffi <goffi@goffi.org>
date Tue, 17 Nov 2015 21:28:58 +0100
parents 6338677f3a89
children 43a127b6a4f2
line wrap: on
line diff
--- a/src/core/xmpp.py	Tue Nov 17 20:18:51 2015 +0100
+++ b/src/core/xmpp.py	Tue Nov 17 21:28:58 2015 +0100
@@ -45,6 +45,7 @@
         self.conn_deferred = defer.Deferred()
         self._waiting_conf = {}  # callback called when a confirmation is received
         self._progress_cb = {}  # callback called when a progress is requested (key = progress id)
+        self.actions = {} # used to keep track of actions for retrieval (key = action_id)
 
     def getConnectionDeferred(self):
         """Return a deferred which fire when the client is connected"""