Mercurial > libervia-backend
comparison 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 |
comparison
equal
deleted
inserted
replaced
1621:a17a91531fbe | 1622:5b24d6bf5d15 |
---|---|
43 self.profile = profile | 43 self.profile = profile |
44 self.host_app = host_app | 44 self.host_app = host_app |
45 self.conn_deferred = defer.Deferred() | 45 self.conn_deferred = defer.Deferred() |
46 self._waiting_conf = {} # callback called when a confirmation is received | 46 self._waiting_conf = {} # callback called when a confirmation is received |
47 self._progress_cb = {} # callback called when a progress is requested (key = progress id) | 47 self._progress_cb = {} # callback called when a progress is requested (key = progress id) |
48 self.actions = {} # used to keep track of actions for retrieval (key = action_id) | |
48 | 49 |
49 def getConnectionDeferred(self): | 50 def getConnectionDeferred(self): |
50 """Return a deferred which fire when the client is connected""" | 51 """Return a deferred which fire when the client is connected""" |
51 return self.conn_deferred | 52 return self.conn_deferred |
52 | 53 |